Make Safari window smaller on Mac
You can enter Responsive Design Mode to set a custom size and resolution of the viewport.


Enable the Develop menu from Preferences → Advanced → Show Develop menu in Menu bar
Choose Develop → Enter Responsive Design Mode.