set viewport for sample in mobile