So You Want to Build an End-to-End Encrypted Web App
E2E is an illusion on anything other than a free Linux running on a free BIOS with no security enclave.You can't have E2E on mobile devices, you can't have E2E on any other OS.
(And you'll probably have a hard time finding the right combination of hardware and Linux distro to have it on Linux)