ios simulator not matching preview on Xcode

Hey guys, I wrote a simple Swift code on Xcode (version 13.2.1) with just images and text on the screen (I'm just a beginner). I'm was following this video (https://www.youtube.com/watch?v=GqWgsWS4aL4&list=PLMRqhzcHGw1YqPh-ggQHJPAUxdHov_uNJ&index=5). My preview shows the perfect view (iphone 11) but when I run the simulator (iphone 11), I'm getting a smaller screen window. I have attached the screenshot. Some help would be appreciated. Thanks!

Could you post the complete project code ?

I too am having this problem for the last 3 months even with Version xcode 13.4.1

ios simulator not matching preview on Xcode
 
 
Q