Something like: https://tailscale.com/blog/ssh-console/
you can hack it into a browser, i guess, but that's subverting the fundamental purpose of the thing