:wasalamex Brother,
One of the things we must learn as Muslims is to have self-respect and confidence in who we are. With all of the Islamophobia, negative attention and stereotyping, it becomes easy to fall victim to an inferiority complex. I noticed you mentioned past experiences or what you
assume people will think of you. There is a fear of being negatively evaluated. But these fears are not necessarily true. Not everyone thinks religion is dumb. Not everyone will laugh or dislike you. It's easy to dwell on the negatives, and that is what you have to change. The first step is to feel at ease in your heart and accept yourself. Don't worry about being accepted or judged by others. If someone doesn't like you anymore because you're a Muslim, that is their loss and you should not feel disheartened. After all, the kind of company you need to keep is that which will encourage you to do good, not which will push you away from Islam or constantly make you feel like you have to justify yourself. Understand that religion is something important to
you, even if it means nothing to those around you. Know the honour in being a Muslim, even if others are ignorant. Don't feel that you need to hide or change who you are, just because of what others will think. Remember, our goal is to please our Creator, not the creation.
Confidence is something we may have to continually work on but the sooner we become firm in our resolve, the better, because this issue crops up in so many places. For example, a Muslim must not allow the fear of people to stop them from keeping a beard or wearing the Hijab. A Muslim must have the resolve to refuse when invited to take part in unIslamic gatherings, celebrations or activities. We all have different levels of confidence and therefore may have different issues to work on, but at a basic level, we should not feel the need to hide or change our identity.
Some things we can do to help ourselves are: making du'a to Allaah :swt: to grant us strength and steadfastness. We should also try to read more Qur'an with understanding because a number of stories and passages are a comfort and encouragement for the believers;
And all that We relate to you of the news of the Messengers is in order that We may make strong and firm your heart thereby. And in this has come to you the truth, as well as an admonition and a reminder for the believers. [Hud: 120]
Reading the Seerah of the Prophet :saws: and his Companions would also be useful, because there are numerous examples of how the Muslims dealt with mockery and mistreatment. Especially during the early Makkan period when the Muslims were few in number, the way in which they persevered despite the cruelty of the Quraysh is a big lesson. The following article provides some further points and examples:
https://www.islam21c.com/islamic-thought/842-should-a-muslim-be-proud/
Ensuring that the people you befriend are good people who remind you of Allaah :swt: and keeping company with the righteous will also help :ia:.
:ia: with time you will become a stronger person. May Allaah :swt: strengthen us all, keep us steadfast and help us to rectify our errors, Aameen.