1- Even if you are not able to go to the mosque due to this anxiety, don’t stop praying. Maintain your prayers regularly at home. Namaz is very important and should never be skipped.
2- Remind yourself that Allah created you and gave you your physical features (for a wise purpose of course, even if we don’t know what it is). How people see you doesn’t really make a difference. It doesn’t make you a better person. When you feel depressed about, just tell yourself: My Lord made me this way, and whatever my Lord does is good. Thank Allah and appreciate what He did for you. This helps you stay strong.
3- Try to find an alternative when going to the masjid. Take off your heels and pray to the side or on the edge where not many people will see you.
4- Read this Dua daily:
https://www.duas.org/Amn.htm