Yes, a VPN is a feasible solution here. Get VeePN to encrypt your online traffic. Encryption makes it more difficult for cybercriminals to track you online and launch cyberattacks on your network, which in turn makes it harder to stealthily install spyware on your phone.
VeePN has its own DNS servers. Besides, it makes your traffic go through HTTPS, which keeps you away from shady sites containing malware. But keep in mind that VPNs can’t help you if you already have spyware on your phone, so make sure to look out for bad signs.