You can inspect your application in the browser by clicking on F12, and at the top you will find mobile icon, where you will get the resolution of your screen. The above media query will be applicable to the device size of max width 640px and below than that. You need to apply media query based on your screen size .