1.16.100, 1.17.2 Hotfix
Note: Sorry I've uninstalled MC recently that's why I didn't include any screenshots.
Steps to reproduce bug:
1. Place some glasses near you 1-2 blocks far
2. Spawn a elder guardian nearby
3. Look at glass
4. Switch game mode to survival
5. Elder guardian ghost will appear soon.
If you see carefully, you'll see that glass (nearby) is invisible
I didn't used any shader/texture pack
My device specifications: