check for config.mobile by value instead of comparing to false