I had a ocean monument near my base which used to spawn guardians, however it stopped working in one of the snapshots. Minecraft said they had fixed it, however it is still unable to spawn any guardians.
Related issues
duplicates
Comments
See MC-186096. This is why you're prompted to make a backup of your world every time you load it in a snapshot.

The server was on all the snapshots until 1.16. I tried it on 1.16 and it didn't work. The ocean monument used to spawn guardians until the snapshot in which Structures were re-written.
Hi there!
Have you opened this world in any snapshots? If so, which ones?