Private space on Android 15 and later
Android 15 added private space, a separate area for apps that you lock and can hide entirely. On phones that offer it, you set it up in the Settings app, in the security and privacy section, under Privacy, then Private space. Google suggests using a separate Google Account inside it.
When private space is locked, its apps are completely stopped and hidden from the launcher, recent apps, the photo picker and Settings. You can move or copy files from your main space into it, and while it is unlocked, the photo picker shows a separate Private tab.
Two limits matter for photos. Google states that on-device data in private space is not backed up and is not restored with the rest of the phone, and that deleting private space deletes its apps and their data with no backup. Availability also depends on the phone maker, so check your own Settings app.