To keep a YouTube video private, upload it or edit its settings. Before publishing, select "Private" from the visibility options. This ensures only you and chosen users can view it, hiding it completely from the public and search results.
To keep a YouTube video private, go to YouTube Studio → Content, select the video, click Details, and under Visibility, choose Private. Save changes—only you and invited people can view the video.