I'm trying to build a WebGL Unity game for Android and iOS devices but I'm not sure how. I can run the game fine on PC because the Build & Play option from the Build Settings does this automatically for me. But what if I want to playtest the game on an Android device?
For clarification, I am not looking to create an Android build (i.e. an APK file). I'm attempting to create a WebGL build and playtest this WebGL build on an Android device's web browser.
For using WebGL export on mobile devices in windows, install IIS.
In Linux, use Apache to create a web server and upload the exported folder to the www root folder of the web server.
Then call your ip:port/yourSiteName in a mobile browser.
Check this link for a walkthrough of uploading in IIS