Prepare the wall for the glass by covering the painted surface with a sealant, such as polyurethane. The sealant protects the paint and readily takes the adhesive. Apply the sealant using a roller brush or rag. Follow the manufacturer's instructions and let the sealant dry completely before proceeding.
Insert the mastic tube into a caulking gun, after cutting off the tip. Press a nail into the nozzle to open the tube.
Line the edge of the glass with the mastic leaving a half-inch gap between the glue line and the edge of the glass. Use a glue line that is an eight of an inch to a 1/2-inch wide. Only apply the glue along the vertical sides. This ensures that air can circulate under the glass, so the glue dries faster. Do not overlap the glue or apply it in circles because this traps air.
Press the glass into position on the wall so it is firmly in place. Have someone hold the glass while you attach supports.
Screw wood strips along the bottom and each side of the glass. Use drywall screws and screw the wood into a support beam. The wood strips hold the mirror in place while the mastic dries.
Allow the mastic to cure according to package instructions, at least 24 hours.
Remove the screws from the wood strips and dispose of the wood. Patch up the screw holes using drywall compound. Paint around the glass to cover the patched holes.