The first point is that you never make any transactions with the hacked wallet, and never send and store assets in this hacked wallet.
Is there any dumb person are still using their hacked wallet despite how easy it's to create a new wallet?
The second stage should be to create a new wallet with very strong privacy so that your wallet is safe. And save the password or Pharsha code safely. A little additional advice from me is that you should never use the hacked wallet again, you can just delete it.
Privacy and security are different stuff, don't mix it.
Deleting the wallet doesn't solve anything if you get infected with a malware, it doesn't make the malware are completely wiped, you're still not safe. It's better to format your cell phone or PC and then start downloading new wallet in legit sources.