To block the YouTube app on iPhone for a child, add it to Blocked in Settings > Family > child > Apps & Websites, and block youtube.com there too. On your own iPhone, give YouTube a tiny Time Allowance, or lock and hide it with Cloak, which also keeps it out of search.
Updated 1 min readGambit Studio
On a child's iPhone
Settings > Family > child > Apps & Websites.
Tap Add, enter YouTube and block it. Add youtube.com as a blocked website too.
Blocked apps are hidden until you allow them (Apple).
On your own iPhone
Time Allowance: put YouTube in its own category with a few minutes a day (Apple).
Require Face ID: touch and hold the YouTube icon to lock or hide it (Apple).
Cloak: lock YouTube with your other video apps in a group, with 10-minute temporary access.