defendant_duck072 wrote:
Is the data transferred when you get a new phone? Are the websites listed in the order you viewed them?
If you are referring to the Safari history mechanism, and not to websites, that is independent of the websites and what tracking they might be doing.
History is usually maintained either locally, or in iCloud.
Clear the history, cache, and cookies from Safari on your iPhone, iPad, or iPod touch - Apple Support
Apple Safari maintains a history of visited websites for one month. There is no control that can increase or decrease the duration of automatic retention, though the above link describes how to purge the history.
The Safari reading list can be as large as you have room for in iCloud.
If you migrate to a new iPhone, the existing history will be migrated, or is already available in iCloud when the same Apple ID is used. Same for the reading list.
Website saved data is retained indefinitely, storage allowing, unless cleared, or unless associated with tracking. Data associated with tracking is maintained for seven days: https://webkit.org/tracking-prevention/. This data is migrated when migrating to a new iPhone.