How did you learn to stop caring what others think?

Honestly, when I spent a lot of time with a friend who didn’t care what others think. I’d always ask her “what if they think this?”, “what if I look like that?”, etc. She’d always say “who cares??”. It just drilled it into my head and her confidence was a great influence