ARjs with Cocos Creator

I’m trying to port ARjs Threejs to Cocos Creator 3.x. Currently, everything is working fine with the video and the webcam but it can’t work correctly on the mobile phone. Is there anyone who can help me resolve this issue?

Incorrect orientation on phone camera
Work perfectly with webcamWork perfectly with the video
Source code

Is there anyone who can help me with this issue?