backported support for hideBarsOnMobile