Here's a much simpler approach: use the Brave browser on iOS and use the YouTube website.
It blocks all YouTube ads, allows background playback and picture-in-picture, etc.
You also get all of your regular YouTube features, like recommendations, etc.
I haven't used the official YouTube app since.