This seems to be a good solution if you have lots of pics to correct.
https://www.howtogeek.com/254830/why...ectly-rotated/
Direct link to the software:
https://savolai.net/software/JPEG-EXIF_autorotate
The way I do it is basically one file at a time since I learned about holding the phone a certain way early on in my iPhone photo taking experience.
If I had a lot to do I would look into the software I listed above.