Connect middleware to check useragent for mobile or tablet devices.