Set correct viewport values on all base templates