Mediasoup-client : I see the internet user at a 90-degree angle when they are using an iPhone, but it appears correctly oriented when they view themselves locally on their own WebRTC

On an iPhone 8, in the mediasoup client demo, when I look at myself on the webcam, I appear upright. However, when I view myself from another location (remotely), I still appear rotated by 90 degrees. This issue consistently occurs with iPhones. Do you know how to fix this?