I would like to ask your opinion about taking off the shirts/tshirts in mourning processions while beating our chests. If yes then can I take of my shirt/tshirt while non mahrams are around.

It is not recommended to do so, and if you do it purposely so that the non mahrams watch you, then it is haram.