Difference Between innerWidth vs outerWidth
window.innerWidth: Measures the interior width of the browser window's content area (viewport) that displays HTML, excluding browser tabs, address bars, and developer tools. This is what CSS media queries (@media (max-width: ...)) measure.
window.outerWidth: Measures the full outer width of the entire operating system window, including side borders and window frames.