Legal warning: Downloading YouTube videos violates Terms of Service and often copyright. Use official offline features (YouTube Premium) or purchase/rent.
If you proceed (educational only):
Browser extensions: Video DownloadHelper, YouTube Video Downloader (similar steps).
Better: YouTube Premium (legal offline), or buy/rent on Apple, Google, Vudu.