You can add some error handling when that happens. What is the error(s) you get?
If a user connects to MetaMask mobile even if the chain is wrong (e.g. contract interactions wonât work), your app shouldnât break by default - check your code that happens based on connection (or authentication).