I recently started experimenting with Bootstrap and implemented a collapsable navbar on my website. However, I noticed that on my Galaxy S6 phone, the navbar does not collapse into the button as expected when the screen size is reduced. Is there a way to make the navbar collapse at col-sm? Alternatively, is there a method to detect if a device is mobile and adjust the display accordingly?