To prevent fogging of glasses, ensure a good fit of your mask, apply anti-fog products to your lenses, position your glasses lower on your nose, use masks with built-in nose bridges, or take regular breaks to air out your glasses.