That is called "Double-think." George Orwell 1984.
Doublethink is a process of indoctrination whereby the subject is expected to simultaneously accept two mutually contradictory beliefs as correct, often in contravention to one's own memories or sense of reality... https://en.m.wikipedia.org/wiki/Doublethink
That is called "Double-think." George Orwell 1984.