When the storage warning shows up, deleting an app is the obvious move, and it takes your saved data with it. Offloading is the gentler option.
Settings > General > iPhone Storage > pick an app > Offload App
The app itself is removed, while its documents and data stay on the phone. The icon stays on the Home Screen. Tap it and the app is downloaded again, and you carry on where you were.
The storage screen also shows per app how much is the program and how much is data. I would read that before offloading anything: a large program with little data is the ideal candidate, such as a game you play twice a year or a navigation app for holidays. An app that is nearly all data gives you almost nothing back.
There is also an automatic version, Offload Unused Apps, which iOS offers as a recommendation on the same screen. I prefer choosing by hand, but for a phone owned by someone who never looks in Settings it makes sense.
The catch is the reinstall: it needs a connection, and it needs the app to still be in the App Store. If a developer has pulled it, the icon can’t bring it back. So don’t offload that old app you love and that no longer gets updates, especially not right before a trip.
Further reading: How to check the storage on your iPhone and iPad
Going deeper: Guide: Immich on Unraid, back up the photos on your iPhone automatically