Viewing videos while offline is a feature of the "premium" subscription to YouTube.
Otherwise, you need to somehow get the video onto your phone (download with a computer, copy to the phone, which may or may not violate any user agreements). From there, you can "cast" the video to the TV with the proper connections.
Which phone?
Which version of android?
Which carrier?
Which YouTube account type?
Which TV?