When you visit a website in Safari, it's most likely keeping tabs on your browsing activity. It could be keeping track directly, or its third-party content providers and advertisers can be spying on you. All three could happen simultaneously. This enables them to serve you content that's tailor-made for you, but it can also feel like an invasion of privacy.
Luckily, Safari gives you a chance to stop the tracking from happening. Since most advertisers will not honor "do not track" requests from browsers that have it enabled it by default, Apple makes it an opt-in experience, to provide a higher degree of success. Ultimately, it's up to the website to honor any "do not track" requests, as there are no legal repercussions from denying the request.
While it won't block 100% of trackers online (sites like Yahoo have admitted to ignoring "do not track" requests), it will help block a decent amount of them on your iPhone, and if you value your privacy, it's just one of the options you should consider along with blocking cross-site tracking, blocking cookies, and/or even using content blockers.
To request that websites not track your browsing activity in Safari, open up the Settings app in iOS 11 or higher. From there, go to "Safari," then toggle on "Ask Websites Not To Track Me." If you're still running iOS 10.3.3 or lower, you can still do the same thing, but it will be called "Do Not Track" instead.
With this option turned now turned on, each and every time a webpage loads in Safari, Apple will add a request not to track you. This header request will show DNT: 1, indicating that you don't want to be tracked by the website or its affiliates.
As of right now, this can only be done in Safari for iOS. Other browsers like Google Chrome and Firefox cannot send DNT:1 requests because they use Apple's WKWebView API which prohibits the option. However, Firefox does have a similar feature that can identify and block trackers on its list.