I experimented with this [1] using GPU acceleration. Last I was working on it, phones required you to manually enable WebGL in the browser and even then I couldn't get it to work on mobile. I shelved it, though I probably could have gotten it working.
[1] https://s3-us-west-2.amazonaws.com/excredo/hashrate.html