Can I use heating foil to glue the mirror to the wall?

No, heating mat CTAE-160 should be used in this case.