photo of foggy glasses

Remedies like soapy water and shaving cream create a thin film on the lenses that protect your glasses from temperature changes, which temporarily prevents what’s called surface tension, which causes glasses to fog up.

Source: Medical News