How can I make my figma frames fit the size of its device when proototyping?

I’ve been designing for a while now - no issues involved. But this has been an emerging problem recently. All my frames seem to be scaled down on prototype mode on the top left corner of its device.

Mobile
Image 1: Frame on editor mode
Image 2: Frame on prototype mode (doesn’t fit the device)


Desktop
Image 1: Frame on editor mode
Image 2: Frame on prototype mode (doesn’t fit the device)


This problem seems to affect my previously existing projects that didn’t have an issue before.