Store your photos and videos in iCloud
By default, your photos and videos are stored on your device in their original, high-resolution version. This means that they use a lot of space on your iPhone and iPad. With iCloud Photos, you can make more space available on your device and still have access to your entire full-resolution collection wherever you go.
Get started with iCloud Photos:
Tap Settings > [your name] > iCloud > Photos.
Tap Sync this iPhone. In iOS 15 or earlier, tap to turn on iCloud Photos.
Select Optimize iPhone Storage to save space on your device.