iOS
There are guides out there covering how to close all your tabs at once — like this one. Solid tips, all of them. Closing all tabs at once beats going one by one through the tab switcher any day. I get why people need it.
But not one of them mentions that Android already closes certain tabs for you automatically. You don't have to do a thing.
When you open a link from an email, a news app, or a text message, browsers like Chrome, Brave, and Firefox on Android treat it as a temporary tab. Swipe back to whatever you were doing before and that tab just closes itself. Your other tabs stay exactly where you left them, and the page still shows up in your history if you need it again.