“Sesame Street” is moving to a new streaming home.

New episodes of the 50-year-old children’s television franchise will appear first on HBO Max, the streaming app from Warner Media that will debut next year, the company announced on Thursday. And for the first time, much of the enormous back library of “Sesame Street” will also be available to watch on HBO Max.

Since 2015, new episodes of “Sesame Street” have appeared first on HBO and the premium cable channel’s streaming platforms. The new five-year deal moves the show to the broader streaming platform, which will include HBO’s programming along with Warner Bros. movies and reruns of classic series like “Friends” and “The Big Bang Theory.”

PBS will remain the free, over-the-air outlet for “Sesame Street.” New episodes will appear there roughly nine months after they premiere on HBO Max.

Financial terms were not disclosed.

Warner Media, which is owned by AT&T, is expected to announce a subscription price for HBO Max this month. Most industry analysts expect it will be at least $15 a month, the current price of HBO.