If you started the world/switched to survival, and switch to creative/spectator mode, the survival HUD (the hearts and hunger bar, and armor if equipped) stays on the screen. I have attached a screenshot below. (Ignore the glitched effect status icon, it's from a resource pack).
Expected outcome:
It should disappear when the gamemode is not in survival/adventure
Thank you for your report!
However, this issue has been closed as Invalid.
It appears you are using an add-on or resource pack. If you can reproduce the issue in a vanilla environment, please recreate the issue, following the Issue Guidelines.
Any issues with add-ons or mods need to be discussed with the content creator directly.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki