Installing a heating system behind your mirror is the most reliable way to avoid a foggy mirror. Typically, mirrors fog up because they are much cooler than the steam in a bathroom after a shower or bath. The cool surface of the mirror causes the moisture in the steam to condensate in the form of fog. A heated mirror will prevent this condensation by being as warm, or warmer, than the steam.