What does the Electrum server get to know about you?
- It knows your IP address from which your wallet on your device talks to it (your true IP address may be hidden behind Tor or other obfuscating VPN).
- It knows all your active wallet addresses within bounds of wallet's gap limit, i.e. used and unused addresses that your Electrum wallet lists in the Addresses tab. It knows and returns the address history to the Electrum wallet as this is what the latter asks for.
To be clear: the Electrum server can identify all those wallet addresses to a wallet of one entity talking via the used IP address. A "normal" Electrum server doesn't do that, but potentially malicious ones could and Electrum servers run by blockchain intelligence companies certainly do this for sure.
So, if you want to separate two distinct wallets from each other, you have to avoid connecting both wallets to the same Electrum server via one IP address (doesn't matter if Clearnet or Tor). The only exception is, you run your own Electrum server and you know your own Electrum server doesn't do any wallet address attribution intelligence.
This is what nc50lc said here, but I wanted to emphasize the main message.
it still can log your bitcoin addresses though so do not open your other wallets while connected to the same server.
Obviously you should avoid to connect both wallets via Bitcoin transactions. Better not send coins to each other. Better not send coins from each wallet to same addresses of some other entity.
Because it's easy to make a privacy mistake or run into issues when a particular foreign Electrum server isn't responsive or online, I run my own Electrum server to which all my wallets talk exclusively to. It's fairly easy to setup on a Raspi 4B and up (8GB of RAM is recommended). You can run Umbrel for the mouse tosser noobs or with more experience setup something like Raspibolt or Raspiblitz.