Glue or one of those sealed magnets then You can move it if needed. They even make cut rocks w magnets in then for this purpose they're very cool looking
I've had luck glueing it to a piece of coralline on the back wall. Seems to stick better than glueing it to bare glass.