I hope you'll manage to turn that around. My five year old (nearly six) is allowed one episode of something suitable after school, and in the weekends after his swimming lessons something longer. I suspect we've lucked out with him in this regard though. He's currently rewatching Netflix' Hilda (which is really excellent, but typically for children maybe two years older), and he is simply engrossed. It's a struggle to find something new though (especially in a quality Dutch dubbing).
We did try YouTube when he was three/four though, but quickly reduced that to hand-picked videos and selected shows on Netflix. The amount of soul-sucking crap on YouTube… Even the 3D CGI Fireman Sam series is preferable.