Honestly?
I don't.
My DD is an ace at this-- and always has been. She just makes other people comfortable around her.
I don't see this kind of social adaptability as inherently bad-- it's actually a huge positive down the road for kids who are unlikely to ever find many true peers as they go through life.
Better to be themselves and also be well liked and able to just roll with what goes on around them, IMO. It's a social skill set that serves them better as teens and adults if they are able to give others what they need/want socially. It results in better communication with others,and also in better opportunities as they begin to have to INTERVIEW for things, YK?
On the other hand, when it becomes a matter of HIDING who you are instead of deciding which facets are most appropriate for the moment, then that is something to address.
Different behavior for different settings, right? THAT part is okay. Like using a "quiet voice" for the library or movie theater, or church. Being non-fidgety and completely quiet during a concert or play. Playing age-appropriate games with agemates seems fine in that context, even if it isn't your normal method of enjoying yourself.
Being someone that has no remote relationship to who you really are, not so much.