I had this concern before I switched to iOS. Turns out you can install content blockers for Safari. Plus iOS supports DoH natively so ads are pretty much non existent on my iOS devices.
It's very helpful. Firefox on Android with ublock origin is still the best as blocker on mobile but it's nice to have eg wipr on Safari.
Did you not get ads on the article? I’m on iOS and every other paragraph had one. Checked on android with uBlock and there aren’t any. I installed “Firefox focus”, supposedly blocks ads, I guess on the network level. Which iOS adblocker do you use?