Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null

I’m using Phaser 3 Matter js to create a game and got this error on some Android devices after a few times play it, and the Webview can’t load the game.
How can I fix this error? Thank you!!

Try to get a stack trace somehow.

It happens at line 1 of phaser.min.js.
I’m gonna change to phaser.js and see what happen in the log.