Optical illusions work because our brain “expects” certain patterns (e.g., that things further away get smaller etc.).

I wonder if through constant exposure to non-standard visual impressions you can teach a newborn child not to “expect” such patterns and hence become “blind” to optical illusions as it would simply see things the way they are (whether it may be parallel lines or of the same level of darkness).
Suppose you have posters of optical illusions on the walls, suppose you try to have as many things as possible upside-down, suppose you live in a room/house with lots of strange optical properties e.g., no angles at 90° and lines on the floor/walls which only make sense/fit together when viewed from one particular position), would this change your way of “seeing”?

Maybe for a specific type of illusion this could work. At least I have the impression that as a child I learned to toggle faster and faster between the alternative realities in pictures such as this one or this one, even when I had not seen the particular picture before.

Later edit: I just came across this hilarious “optical illusion”  😉