Width adjustment for mobile templates