How you taking pictures?
If you use a phone or tablet turn the screen rotation lock off.
Other way is to open photo in a gallery. Rotate so it's wrong and save then rotate back so it's correct and save again. That will add or correct the EXIF data...Exchangeable Image File Format