How to handle device rotation/orientation properly (media freeze in portrait)

Can anyone share a knowledge of how to handle device orientation properly?
I’m using janus as a SFU and building a client with react-native-webrtc.
I’ve successfully established a connection and I can see a stream on another side, everything is fine, except stream is frozen in portrait orientation and doesn’t changed on device rotated.
What I mean by “frozen” is stream still in 720x1280 and not changing to 1280x720.
Also when I’m trying to send 1280x720 stream from server to render it in RTCView, it’s also do not rotating on device orientation changed.
I’ve tried to remove urn:3gpp:video-orientation from SDP with no effect.
Please share your thoughts.
Thanks in advance.