S25E18 - Days of Future Future
Marge wakes to find Homer atop of the kitchen table in nothing but his underwear, and gives him advice on his health. Just when Homer seems to be taking Marge's words to heart, he marches upstairs to tell his wife that he will take his health seriously only to fall down the stairs and die. At his funeral, Professor Frink announces that he has made a clone of Homer, and Marge warns Homer to take this second chance seriously. After thirty years of clones dying, Frink cannot bring Homer back, but has stored his memory in a flash drive, which he plugs into a television screen. When Marge realizes that her husband is just a face on a screen, she is fed up with him, and gives the flash drive to Bart, so that Homer can reside with him until she can figure out a way to get used to him in his current form.
Bart shows Homer his new digs, an abandoned classroom at Springfield Elementary. As soon as a glum Bart sends his two sons to his ex-wife Jenda's house, he needs advice more than ever now, but Homer is of no use when the monitor freezes. Working at a dinosaur amusement park, Bart laments that he misses his children. Elsewhere at Lisa's zombie soup kitchen, her husband Milhouse is attacked by a zombie. Unable to move on from his ex, Bart sees a targeted billboard telling him to move on using shock therapy that makes him forget. After the procedure, Bart visits Marge, who claims to not miss Homer that much, but in an attempt to initiate a conversation between her and Homer, he sees she does miss Homer. Homer returns to normal when Bart starts to get back into the dating scene, and sleeps with one woman after another(including Lisa's former teacher, Miss Hoover). At Bart's apartment, Homer gets a new lease of life in a robot suit. Bart's sons visit him and asks him to help Jenda out with her depression. She shows up in tears, telling Bart that after she bought the shedding tank for Jerry(her alien boyfriend), he humiliated her and breaks up with her for someone else. Bart comforts her by mentioning he's trying to get his life on track and her crying is a reminder of what he lost. Jenda is impressed by Bart's newfound maturity and invites him to dinner. That night, they go out to dinner and in spite of it not going well, both she and Bart begin bonding again. Meanwhile, Lisa and zombie Milhouse are attacked by bullies, and Lisa actually finds it attractive that Milhouse fights them off. She does not want him cured and is stalked by Dr. Hibbert who isn't happy about her decision. Bart and Lisa both go to Moe's to deal with their respective marital problems, where Marge tells them to stick through. She then electrocutes herself to death in order to live in the flash drive with Homer. Milhouse is cured and Bart moves on from Jenda.
Bart then finds himself back in the therapist's chair, and learns that what he experienced was just a neural implant. Bart and Lisa visit Marge and find out that she and Homer have finally gotten back together, and she gave him a new robot body and personality; Milhouse remains a zombie and Santa's Little Helper is seen talking.