Walletconnect QR Code

I am using walletconnect provider as below to connect wallet.

const web3Provider = await Moralis.enableWeb3({ provider: “walletconnect”, chainId: 137 });

When I trigger it with a button, it opens the qr code in modal. How can I show the qr automatically on the page and not in pop up. Can you help me?

if you’re using React, you should be able to call enableWeb3 in useEffect