Desktop: LibRedirect browser extension.
Android: Install an app that can open YT links (like LibreTube), and set it as default handler for YT links in the settings. Alternatively Firefox Beta can use regular browser extensions, so LibRedirect should work there as well.
Have you met my friend SponsorBlock?