It looks like iOS 15 will be able to remove or reduce lens flares from iPhone photos, but only if it's running the latest chipset.
iOS 15 could fix the worst iPhone camera flaw : Read more
iOS 15 could fix the worst iPhone camera flaw : Read more