When a warden is stuck in lava or water, it eventually despawns. In Java Edition, it doesn't, which is intentional per
Steps to Reproduce:
- Build a glass cage
- Replace the floor of the cage with lava or water
- Spawn a warden inside the cage
- Wait for a while
The warden eventually despawns.
The warden shouldn't despawn.