Differences in resolution between the mobile app and the browser

I’m finding small differences in resolution between the mobile app and the browser.

I’m using frames with W: 412px / H: 915 px.

My prototype device is set to Custom Size of 412x915 px.

Is there any way to get the same result on the screen between the mobile app and the browser?