I have created a modal to warn mobile users to turn on their WIFI before proceeding through my data-intensive site. I would like to open this modal on mobile (xs, s) devices. I am using bootstrap 4.
I have tried to leverage the bootstrap responsive utilities in my template, particularly the class .hidden-md-up
, but no matter where I use this class, there ends up some remaining overlay that disables some site functionality. This is because I'm still opening the modal, then hiding it: not an elegant solution.
I'm looking for any way to leverage bootstrap to sense for a small screen / mobile device. I'm using angular 2, and therefore am avoiding jQuery. I haven't used jQuery in my project yet. It would be nice to avoid loading the library just for this bonus functionality