Verb: virtue signal
- To express opinions or sentiments publicly with the intention of demonstrating one's good character or moral correctness
"She often virtue signals by sharing posts about charitable causes"
Encyclopedia: Virtue signal