You need to have "Developer Tools" open first
- In Windows/Linux, pressCtrl+Shift+IOr justF12
- In MacOS, pressCommand+Option+I
Once developer tools is open and focused, you can toggle device emulation
- In Windows/Linux, pressCtrl+Shift+M
- In MacOS, pressCommand+Option+M