YSK: there's a browser extension called "SingleFile", which allows you to save any page into a single HTML file. - eviltoast

It also works with JavaScript-heavy websites like Mastodon and Youtube, which the standard “Save Page” feature implemented in all browsers usually fails to save, though some features like collapsibles are missing.