what to do when your phone has a malware and you’re hacked?

Get an iPhone, you can’t get malware on it.

Malware is one of the very few things that Android sucks at, it’s common too. I’m an iPhone user but I do love Android and I would have very few issues moving, but my phone is very private and the idea that it can get malware is horrible and is a deal breaker.

I imagine that Google Pixel would probably be better at not allowing malware but I have no idea.

Edit: In come the downvotes, chill. I like Android but if malware is an issue an iPhone would solve it.