While Apple does limit tracking and cookies in the newer versions of its Safari app, cross-site tracking can still occur.

To prevent websites from doing so on your device, go to Settings then tap Safari. Scroll down and turn on the option Prevent Cross-Site Tracking. Bear in mind this won’t remove ads completely, it will just mean they won’t be able to see your previous browsing history.