Use a browser extension like Alby on chromium-based browsers and Nostore on safari.
Private key stays on you local machine and the extension handles signing for you.
We’re still early. I completely expect sites to stop asking for or accepting private keys in the medium term. Tooling just isn’t quite there yet for all platforms.