webmail works fine without an internet connection, gmail does it. You need to write a PWA.
With that said, while I don't know much about the particulars of the Proton web client and how it handles offline access, I'd still prefer a client that treats all mail the same way, regardless of provider, and that I can manage locally/migrate to a new computer/back up to my own NAS, etc.