Corrected automatic resize on mobiles