SHA256 error: undefined is not an object (evaluating ‘crypto.subtle.digest’) on mobile phone

Works fine on desktop but on the newest version of iphone on fully updated chrome or safari is giving this error

SHA256 error: undefined is not an object (evaluating 'crypto.subtle.digest')

Is this just simply incompatible with mobile browsers? If so what is the native alternative for mobile chrome without using an external library?

I was thinking that the issue had to do with HTTPS/HTTP (testing in an HTTP LAN) but I’m wondering how https://github.com/Niek/obs-web gets around this as this works fine over HTTP on mobile.