There is a way to resist negative peer pressure or the judgemental conduct of others around you: Make a public commitment to your position and welcome mild attacks.
At the start of any negative interaction, stating your commitment to your position or conviction publicly is key. Standing up to your conviction will make you less susceptible or open to negative peer pressure or shaming.
Research shows that when you attack a committed person just enough for them to react but not become overwhelmed (a mild attack), they become more committed.
In fact, several mild attacks can immunize a person and empower them to resist more powerful attacks against their position.
Mild attacks stimulate us to reflect on counterarguments. Several studies suggest that counterarguing helps people build their resistance against persuasion.