What version of map viewer are you using? I would refrain from using classic.
Also what type of web application is it? instant app, experience builder, web app builder?
And lastly, is it REST API, if so are you a feature service or map service? Screenshots would be helpful
I've had issues in the past were maps built on the newer map viewer have issues showing in web app builder apps.
My recommendation is to be sure you using new map viewer and create the app with instant apps or experience builder. Also very privileges on the layer you are using.