Debug Mobile Components

You can test mobile basics, like small screen sizes and responsive design, in a desktop browser using tools like Device Mode in Chrome DevTools. To review mobile-specific features, use the Salesforce Mobile app on a real mobile device.

With Lightning on Mobile, the desktop and mobile versions of Salesforce provide the same user interface: Lightning Experience. This means that, while it’s not a substitute for comprehensive testing on actual mobile devices, you can use your desktop browser to run and debug many aspects of your mobile Lightning apps and components.

Chrome DevTools Device Mode lets you simulate these aspects of mobile devices:

  • Screen size
  • Device orientation
  • Location changes
  • Mobile device CPU constraints
  • Wireless network constraints

To learn more about Device Mode, refer to Simulate Mobile Devices with Device Mode in Chrome DevTools on the Google Chrome DevTools website.

See Also