When uploading your game itch will let you choose whether it will run in the browser. You just gotta zip the Web GL build and specify that it runs in the browser.
like this https://www.loom.com/share/e8df981c0be84077ae3fa5c45f1e35ca i recorded this to help