Hide and Show in Salesforce Lightning Web Component based on viewing Device

import FORM_FACTOR from ‘@salesforce/client/formFactor’ can be used to find the viewing device in Salesforce Lightning Web Component using which we can Hide and Show based on the viewing Device. Sample Lightning Web Component: HTML: JavaScript: js-meta.xml: Output: