It's a known problem with the HTML5 export of Godot4.x, that's why I stick with Godot 3.5 at the moment.