add viewport for apple device