I want to have 2 different outputs for mobile and desktop how I must handle it with javascript? for example
first i check the device width if width <= 700 px is mobile = true and show mobile output(html,js,css) else mobile = false is mean device is a desktop and show desktop output (other html,js,css)
how I can do this?
user agent is work in react js and in js window.screen.width