Virtue signalling:
"Virtue signalling is the conspicuous expression of moral values by an individual done primarily with the intent of enhancing that person's standing within a social group. The term was first used in signalling theory, to describe any behavior that could be used to signal virtue – especially piety among the political or religious faithful. Since 2015, the term has become more commonly used as a pejorative characterization by commentators to criticize what they regard as the platitudinous, empty, or superficial support of certain political views on social media; and also used within groups to criticize their own members for valuing outward appearance over substantive action." - Wikipedia