An optometrist or ophthalmologist will conduct a thorough eye examination to determine the child's visual acuity and identify any refractive errors. Based on the results, they will prescribe corrective glasses with appropriate lens power to correct the vision problem.