Hosting a lightning node on your own machine is meh.
Not maint for security, no isolation whatsoever, ip address exposed and WebAssembly is VERY powerfull and prone to injection on Browsers.
But you can use #Tor and Firefox Containers. Nothing for chromium unfortunately.