Phones should not be used or seen during the school day, the education secretary says.