if width is greater than height javascript code example
Example: minimum width of different devices in html
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="viewport" content="width=device-width,initial-scale=1">