reaction_formation has definitions from the fields of psychoanalysis,psychiatry
1
[ noun ] (psychiatry) a defense mechanism in which a person unconsciously develops attitudes and behavior that are the opposite of unacceptable repressed desires and impulses

Examples

"his strict morality is just a reaction formation to hide his sexual drive"

Related terms

defense psychiatry

*