Tricks for keeping glass from fogging up racing on cold nights?

Talking upper 30’s/ low 40’s this weekend at night where I am headed. It’s basically at elevation inside a national forest.
was down there two years ago had issues with windshield fogging up( rest of the glass too) don’t want to get caught unprepared this time if it happens