You can debug the mobile view of your website on your desktop.
For basic layout behavior, you can use Chrome, open dev tools ( CTRL+SHIFT+I ) and then click the mobile icon.
This will allow you to see the site at mobile with, and with mobile useragent information.
In the left pane, you can choose the type of device you want to emulate.
Excellent for basic layout and responsiveness debugging.
If you need to be able to test the site directly on a device and see scripts, console log output, and more, you can do advanced debugging directly with a linked mobile device.
For the discussion here I'll use Windows as the desktop, and an Android device as the mobile, but there are similar solutions for Mac and iPhone.
You can debug the mobile view of your website on your desktop. For the discussion here I'll use Windows as the desktop, and an Android device as the mobile, but there are similar solutions for Mac and iPhone.
Basic process;
You'll see a special window appear that shows your phone screen but also shows the full devtools view.
Notes;
https://developer.android.com/studio/debug/dev-options
https://developer.chrome.com/docs/devtools/remote-debugging/