Issue with Exiting Full Screen in Image Hotspot

I've found an issue where a user who enters fullscreen to view image hotspots is unable to exit fullscreen even after hitting Esc, and the lack of a "close" button makes this doubly troubling. This works fine when viewed in a standard web browser but fails when the page is viewed from within an application (e.g., Teams).

For example, when an H5P Image Hotspot is expanded to fullscreen from a channel tab in MS Teams, it fails to expand but instead glitchs and locks the screen with no close option.

Content types: