zakipinheiro27 Hey mate, I think this is a broader Android issue, had this on an old pixel. It is inconvenient but you can rotate it in Google photos. Edit under the crop option. For more information:
The orientation of the pictures changes based on how you’re holding the phone (how it is tilted over the document you’re trying to capture I mean). If you click pics holding your phone the way you’d normally use it, it’ll click pics the way it is displayed in the camera app. If the top of the phone tilts downwards, the image will flip 180. If your phone is tilted sideways, the image will flip 90 depending on which side is tilted downwards.