Is there a downside to leaving cavity in wall behind mirror?
If the cavity is not insulated, your mirror will be cold and fog-up more when you take a shower.  Also, if your mirror is not sealed to the wall, water vapor may enter the cavity and cause condensation and mold.  If there is insulation and is sealed from water vapor, you will have no problems.