Cell phone viruses

Recently, I had several viruses show up on my Samsung S23 Android phone. I paid a shop to remove them. I wonder if any free apps will offer protection so this doesn’t happen again to me