IOS 13 or higher allows you to automatically close tabs in Safari after a specified period of time, which helps to keep your iPhone running smoothly.
You can have up to 500 open tabs. This number of active browser tabs can quickly get out of hand. It gets to be kind of a pain to go swiping through all your open tabs every few weeks to clean out the ones you no longer use.
Fortunately, in the Safari settings on your iPhone or iPad, you can set how long your tabs stay open before they automatically close; after one day, after one week or after one month. Let’s explore how to set this feature.
This is for the iPhone and iPad

To Tweet about this post, click the Tweet icon below to launch Twitter, then click its Tweet icon to post.
Check out TechSavvy.Life for their blog posts on smartphone apps, PCs. and Macs!
Tweet
Close All Tabs Solution
One solution is using the Close All Tabs option revealed by a long press on Done. But it’ is no good if you have a handful of newer tabs that are still useful to have open. Refer to below image:

The Settings Solution
First, open Settings. Next, scroll down until you see the Safari option and tap it. See below image:

Now, swipe down to the Tabs section, then tap Close Tabs. See following image:

On this screen, you have the option to set the duration of open Safari browser tabs. When set, Safari will close tabs that have not been viewed within the period of time you set. The options are Manually, After One Day, After One Week or After One Month. This setting applies to Private tabs as well.
Checkmark an option that suits you. Refer to below image:

Now, you can exit Settings.
However, you can still find the automatically closed tabs as well as Private tabs in the Recently Closed Tabs menu by holding down the + (plus) button on the tab management screen in Safari. See below image:

This is a potential downfall in using this feature. If you want to fully conceal recent browsing activity, it may be best to manually close the tabs.
I hope you have found this post helpful. If so, click the Tweet icon below. This will launch Twitter where you click its icon to post the Tweet.
I have found TechSavvy.Life blog posts extremely helpful. Check them out for posts on smart phone apps, Macs and PCs!
Tweet
The following is a previous Twitter feed so you can view how a Tweet will be displayed.
I Would Like to Hear From You
Please feel free to leave a comment. I would love hearing from you. Do you have a computer or smart device tech question? I will do my best to answer your inquiry. Please mention the device, app and version that you are using. To help us out, you can send screenshots of your data related to your question.