I use ReVanced and it does exactly what you ask for, including even more features like SponsorBlock. I can't imagine using the regular YouTube app anymore.
Funnily enough there is also Reddit ReVanced, but with enough effort Reddit or YouTube could stop them working, so their existence doesn't change the argument about free/open APIs.