+ Start a Discussion

LWC difference between mobile app or mobile browser


I have a LWC component .
It can be opened in mobile in mobile app or webbrowser .
how can we differentiate between
- if mobile app
- if mobile  browser

Best Answer chosen by Sandrine
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Sandrine,

Please find the similar question (https://stackoverflow.com/questions/68906907/in-salesforce-lightning-web-component-how-can-i-find-if-i-am-using-salesforce-m) which is answered in stack Exchange.

As per that it is mentioend we can use FORM_FACTOR to identify it.

Let me know if you face any issues.

If this solution helps, Please mark it as best answer.