If you do not want to buy iCloud space, you can do some adjustments according to the official storage space optimization suggestions.
If you don't want to buy iCloud space or switch to a new device, you can use the iPhone backup tool to save the data you need to the local disk and free up more memory.