Fixing rendering issues with mobile layout