I right clicked each sideways picture, and hit view image, and voila, each appeared straight.
Me too.
So I downloaded the picture and looked at the metadata on it. There's an "orientation" tag...
maybe you were holding the phone sideways to get the shot? Ida know really...
--------------------+----------------------------------------------------------
Tag |Value
--------------------+----------------------------------------------------------
Manufacturer |Apple
Model |iPhone 7
Orientation |Right-top
X-Resolution |72
Y-Resolution |72
Resolution Unit |Inch
Software |12.4.1
Date and Time |2019:09:20 08:51:21
Exposure Time |1/643 sec.
F-Number |f/1.8
Exposure Program |Normal program
ISO Speed Ratings |20
Exif Version |Exif Version 2.21
Date and Time (Origi|2019:09:20 08:51:21
Date and Time (Digit|2019:09:20 08:51:21
Components Configura|Y Cb Cr -
Shutter Speed |9.33 EV (1/642 sec.)
Aperture |1.70 EV (f/1.

Brightness |8.55 EV (1283.53 cd/m^2)
Exposure Bias |0.00 EV
Metering Mode |Pattern
Flash |Flash did not fire, auto mode
Focal Length |4.0 mm
Subject Area |Within rectangle (width 2217, height 1330) around (x,y) =
Maker Note |1080 bytes undefined data
Sub-second Time (Ori|666
Sub-second Time (Dig|666
FlashPixVersion |FlashPix Version 1.0
Color Space |Uncalibrated
Pixel X Dimension |640
Pixel Y Dimension |480
Sensing Method |One-chip color area sensor
Scene Type |Directly photographed
Custom Rendered |3
Exposure Mode |Auto exposure
White Balance |Auto white balance
Focal Length in 35mm|28
Scene Capture Type |Standard
North or South Latit|N
Latitude |30, 16, 1.37
East or West Longitu|W
Longitude |98, 52, 16.24
Altitude Reference |Sea level
Altitude |514.5929
GPS Time (Atomic Clo|13:51:21.00
Speed Unit |K
Speed of GPS Receive| 0
GPS Image Direction |T
GPS Image Direction |114.0923
Reference for Bearin|T
Bearing of Destinati|114.0923
GPS Date |2019:09:20
--------------------+----------------------------------------------------------