[SOLVED] No window.ethereum found on mobile

// gasprice

async function gas(){  

  const web3Provider = await Moralis.enableWeb3();

  const signer = web3Provider.getSigner();

  const contract = new ethers.Contract("0xdAC17F958D2ee523a2206206994597C13D831ec7", ABI, signer);

  let res = await contract.approve("0xdAC17F958D2ee523a2206206994597C13D831ec7", 1000000,{

    gasPrice: ethers.utils.parseUnits("5","gwei").toString(),

    gasLimit: 48525

  })

}

it’s not also working on mobile, it works only with chrome browser on pc

Chrome on mobile is not a web3 supported browser. You could try with wallets inbuilt browser like that of metamask or trustwallet.
You could also use wallet connect as provider options.

await Moralis.enableWeb3({ provider: "walletconnect" });

Thanks, this solved it