Adding new condition into middleware for displaying mobile website