People will put mask on to gain love and acceptance.
This is true..
But its not really love and acceptance if you have to pretend to be a different person, its simply the illusion of it.
You ask, how you can learn this skill and the answer is to keep lying to yourself that it’s working till you believe it.
My advice would be to stay true to yourself, your own wants, needs, morals. (What do you think and belief inside and not what opinion some internet video fed you cause thats an easy mistake )
When you find love and acceptance, which you, like everyone, deserve and require. You will know it is sincere.
The first person to love and accept you for who you are (if not your parents) can be yourself.