...how do you get a game written in c++ running in the web browser?
how do you get an exe file to run on a device that cant run exe files?
web assembly
If you have the source you can compile it for other platforms.