I've been making android games for a little while now and recently became interested in making html5 games for desktop and mobile web browsers. android games aren't very reliable for income and I've been seeing a lot of basic html5 games selling for a lot of money on sites like marketjs.com. I want to make html5 games that work on mobile browsers and that are actually polished and fun, so that I can fulfill my desire to make mobile games and not be poor at the same time.
I don't know much about javascript/html5 yet, but I plan on learning. Still I want to use an engine or library to make my games because it just saves so much time and I can focus on the parts specific to my games. I am having trouble determining which engines will work on mobile and desktop web browsers(I don't mean gaems that can be compiled to mobile apps, but ones that will run in a mobile web browser like those on marketjs).
It seems like impact.js works on ios browsers from what their site says, I'm not sure about android though. and the other engines don't say much at all aboiut their mobile web support. For regular android games I use libGDX a lot which can compile to html5, but it uses webgl which If I'm correct won't run on mobile web browsers. So I'm just looking for something that is safe to use if my target platforms are mobile and desktop browsers. If anyone can name some engines that they know for sure work for that I can go through them and decide which one best fits my needs. If you want to comment on the engines as well I'd appreciate your input.
I hope someone is able to help me or point me in the right direction, thanks for reading.