I’m not sure what the answer is but this is a great question. I had a little conformist streak (or at least the wannabe kind) when I was a teen but not before that, and I realized shortly after getting out of high that if others like you for the wrong reasons than you’ve accomplished nothing meaningful to yourself.
I don’t have my own kid/s but my nephew is as close to being one as I’ve ever had and I always tell him not to do something if it doesn’t feel right or to modify what interests him because of how he wants to be perceived by others. I hope that these seeds stay planted when he becomes a teen himself (not far from now).