Delhi schools have switched to online mode up to Class 5 as the national capital grappled with rising air pollution.