Please check are you add the responsive meta tag in html file.
In browser resize if you not add the meta tag the responsive will
work but mobile will not work like this so please check meta tag in html file
Responsive for meta tag:
<meta name="viewport" content="width=device-width, initial-scale=1.0">