The good news is that, by default, modern iPhones have a "Lens Correction" feature turned on, found under Settings>Camera.