In the end I moved away from media queries because they didn't produce the results. jQuery came to the rescue:
<script>//mobile responsiveness
var width = jQuery(window).width();
function ipad() {
if (width <= 1024 && width >= 768){ //if tablet
//css here
} else if (width < 768){ //if mobile phone
//css here
}
}
jQuery(document).ready(function () {
ipad();//run when page first loads
});
jQuery(window).resize(function () {
ipad();//run on every window resize
});
</script>