Chat application

Hello. I am making a chat application and there will be an admin and mod system here. For example, when I log in, I have the admin and I have the opportunity to delete messages. To mod another user, when I click on his message, delete and mod options open. When I click on the mod, he now has the mod authority and he has the opportunity to delete messages. Is it possible to do this?
It needs to be done with chat view, but when these and the profile picture are clicked, the profile picture will grow with the notifier or if anyone knows how, please help