Hello.
When you access the YouTube application and the 'connection error' shows up, you should also be shown a little pop-up message at the bottom of the screen which says: 'You are offline' on the left corner and 'Go Online' on the right one, which is tappable. Tap it, and you should be good...