You could try fashioning an acrylic bracked that hangs on the back of the aquarium that the powerhead is connected to.
Or you could silicone the powerhead to the aquarium, but that is more of a permanent solution. There are also the kind of powerhead that is used in saltwater tanks that are held on by magnets, but they are pretty spendy.
You could DIY a magnet system. Hard drives from computers have super strong magnets that would hold a powerhead through up to a 1/2" of glass. Superglue a magnet to the power head and CAREFULLY mate it up with another magnet on the other side of the glass. I have a couple magnets that have to be slid apart to separate. It takes quite a feat of strength to pull them apart.