Frame and fit
The uploaded image is placed inside a fixed browser-chrome header (title bar with dots) sized to match the screenshot's width. The screenshot's full height is kept and scaled proportionally rather than cropped, so a taller source image produces a taller, more compressed-looking mockup instead of losing content off the bottom.