I predict that very soon we will have AI tutors like ChatGPT, and then entire courses will be automated in technology. We already have "100% tech" online schools with one teacher per 100+ students or no teachers at all; but with AI tutors, I expect these schools will become much more effective, much more popular, and ultimately much more prevalent. I don't believe that the traditional school system will be replaced or that any public schools will become online-only: in-person learning is still necessary for many students, as are factors like free lunch and mandatory socialization, and AI will never solve those issues. But I do believe that fully-online learning, which is already rapidly growing, will start to grow even more rapidly.
And this isn't necessarily a bad thing either. Frankly, many people's public education system sucks because of lack of resources, and I don't see any alternative way that it can improve, because of lack of resources. For the students, a good AI tutor can be much more helpful than a teacher (and much more patient). For the teachers, it may be harder to get a "traditional" general-elective teaching job, but maybe instead they can teach small focus groups in special classes, where the teaching is much more fun and interesting, but also harder to automate. The state of education in modern society is awful and this has serious consequences (see: recent elections); a low-cost, effective teaching solution would be a huge benefit to global society.