Adapt SPFx components to SharePoint Mobile APP and Microsoft Teams environments
Modern SharePoint sites rendered on SharePoint Mobile App or Microsoft Teams are different than when displayed in the browser.
Native components are removed from the page or replaced by native APP options. If you are building extensions or web parts for the modern SharePoint you may want to test them in both environments to make sure they are not overlapping with native apps features.
While the framework does not provide context variables to let developers know where the component is running, it needs to be validated through the user agent.