For instance a person who is racist wanting to hire black people because they want to project an image that they aren't racist. Or if they doesn't like obese people but still interacts with them to make it look like they actually like them.
Is there a term for that?