most arent stacked completely on the glass
mine is stacked up from front to back progressively higher, it does touch the glass in some spots but there is actually room back there for fish to swim and hide, as well as for water flow
Mine do not touch the back glass at any point. you can drill/pin and epoxy your rocks in place. make sure you provide to distribute load of rocks at bottom glass and arrange so you do not have a catastrophic failure
I have rocks that touch in places but nothing putting a lot of weight on the glass. As my stack gets higher it leans backward a bit. Because I've got seahorses I can't get a good flow going but I move the water in the back with bubbles/ bubble stones. My ponies love the bubble massage (I've got girls, boy seahorses have a front pouch that could trap an air bubble and cause problems). One of my little stones bubbles up under some of my LR but most create a wall of bubbles against the back of the tank which moves the water quite a bit and looks pretty too.
Okay.
I do not have any rock touching my glass anywhere in any tank. I think it scratches the glass on the back and limits the fishes swimming room. I just don't like it. Jut me though.
Mine doesn't touch the back glass yet. I'm adding more rocks to one side to try to stack a rock wall and it may have to touch the back glass. We'll see.