Update:
If you are using Unreal Engine 5 (or any version of an engine where the latest version does not support WebGL), start a new project in Unreal Engine 4 (or any version of your chosen engine that does support WebGL) then port your assets over and go from there.