You can keep your private pictures hidden with Google Photos' Locked Folder
This folder is protected by your phone's login passcode or Google password.

Humans take a lot of pictures and videos. In fact, Google says its users are storing over 9 trillion photos and videos on their servers. That's a lot. And while it's very convenient to have every photo you have ever taken backed up in Google Photos, some photos and videos are personal and you might want to have them locked in a private folder.
Items in a Locked Folder in Google Photos don't appear in the Photos grid, search, albums or memories, and other apps can't access them. Unlike the regular photo archive, these photos are protected by your phone's screen lock. This guide covers what you need, how to set it up, the backup choice and what Locked Folder doesn't hide.
What you need before you start
All you need to set up a Locked Folder on Google Photos is a phone with a screen lock; that same lock opens Locked Folder. You will need an Android phone running Android 6 or later, or an iPhone running iOS 15 or later. Your device should have some sort of screen lock, like Face ID or a PIN to make sure it is you trying to access the photos. Note that this features isn't always available: it's not available on fully managed devices or certain account types (ask your device or account admin).
On a computer, it's a different story. You can go to photos.google.com and click Locked Folder; the password there is your Google Account password, so anyone who knows it can unlock the folder.
Set up Locked Folder and move photos in

Setting up a Locked Folder on your phone takes three taps, and your phone lock does the rest. Head over to Google Photos > Collections > Locked > Set up Locked Folder, then unlock your device when prompted. On iPhone the prompt also appears the first time you try to move something in. On a computer, setup happens the first time you move items in.
To add a photo to Locked Folder on a phone: select the photo or video, tap Add to, then Move to Locked Folder, then tap Move. On a computer: select the items, click More at the top, then Move to Locked Folder, then click Move. On Pixel 4 or later you can touch and hold the preview of your last photo in the camera app and tap Locked Folder.
Make sure to turn on backup for Locked Folder. Unbacked-up items can be lost. Without backup, the items exist only on that device and are lost if you uninstall Photos, clear its app data or lose or damage the phone.
What Locked Folder doesn't hide or do
Naturally, only the photo you move into Locked Folder stays private. If you and another person both have copies of the photo, only your copy moves in. This includes edited versions and shared copies saved by others, as well as copies in Trash. Items in the Locked Folder can't be added to albums or photo books. They can't be edited, shared or moved to Trash. To share one, move it out of Locked Folder first.
In conclusion, Locked Folder is private from other apps and people browsing your photos, but it's only as safe as your screen lock. Anyone who knows how to open your phone can also open the folder. On the computer, Locked Folder is unlocked with your Google Account password, so the best way to harden it is to secure the account with 2-Step Verification: go to Google Account > Security & sign-in > How you sign in to Google > Turn on 2-Step Verification.