That process works, but is a lot more complicated on a phone, and for some things you actually need something like a browser wrapper, because when you open a HTML page from the filesystem, loading other files is restricted.
As I said, a service worker works completely transparently (no messing with styles), in the browser directly (and as such also on mobile) and requires no user action.