The same way you'd want to back up your iPhone before updating to iOS 18, head to Settings > [your name] > iCloud > iCloud ...
If you can find the app you want to use, just add it your iPhone (the developer will probably offer instructions) and you should be good to go. Looking for apps that used to be in the App Store ...