I've had Minecraft since 2016. Most of the time I play on servers yesterday, but I played single player (I often go to single player and I didn't have the bug the day before) and it looks like the picture and I can do nothing more. However, I can create a new world and play normally until I go out, then I can no longer get in.
Hmm maybe it helps to reinstall the game again? If you have a shader or a texture pack in it, it could be because of that
Restart Minecraft once. You should remove all used mods.
I've already done it and I'm just reinstalling Minecraft, thank you anyway