Recorded video split screen and show same footage

I have successfully integrated react native webrtc in my project. On the desktop’s web browser we receive video calls from mobile app. It shows remote video, audio everything ok, but when recording video calls from iOS devices, if device is landscape mode ok, but portrait mode is shows as below image.

kinda of split screen and duplicate same footage.
Is anyone know with is problem, help me