Android app can't connect to my MongoDB database

I converted my Reactjs website into an Android app with a capacitor and when I run it, it only shows the website interface design. It can’t seem to connect to the mongoDB database because it didn’t show the profile picture and can’t login when I tried to login. How to fix this problem?
Thank you.