Remove the glass panel to gain access to your iMac's internals.
The glass panel is fixed onto the front bezel with fourteen magnets around its perimeter.
Stick two suction cups to opposing corners of the glass panel. Small suction cups used to stick things to windows or shower walls work.
Gently pull the glass panel straight up off the iMac.