Rotate the profile photoin mobile version

I am using laravel jetstream with livewire and enabled Features::profilePhotos().

When I upload a profile picture from the computer, it displays and saves it correctly but if I upload it from the mobile it rotates the picture.

@if ($photo)
	Photo Preview:
       	<img src="{{ $photo->temporaryUrl() }}">
@endif

How can this be solved?