Continuity mistake: When Homer ignores Lily, she gets upset then runs out of Moe's, and in the interior shot the door is hinged at the left, but in the next exterior shot that door is hinged on the opposite side, while Lily is crying outside. (00:09:35)
Continuity mistake: When Marge walks out of her aunt's house onto the porch, the screen door's handle is at the right side, but in the following shots the screen door opens the opposite way. (00:10:05)
Continuity mistake: While Lily continues to "light up all the men's lives, except Homer's," when she walks into the power plant with picnic lunches, Homer is wearing a solid peach colored tie, but in the next shot it's a striped peach and pink tie. (00:11:00)
Continuity mistake: When Homer takes Lily home after her date with Burns, as Homer pulls up to her house, the doorknob is on the left side of its front door, but when Lily enters the house, the doorknob is on the opposite side of the door. (00:16:20)
Continuity mistake: At the end, when Lily is back at a pub in England and meets Homer's doppelganger, his single shirt pocket and button are at his right side, but as he and Lily leave the pub arm in arm his shirt pocket and button are on the opposite side. (00:20:20)
Answer: I'm not sure if this is the one you're thinking of, but an episode of "Ray Bradbury Theatre," called "A Sound of Thunder," dealt with a similar matter: a group of hunters travel back in time to hunt dinosaurs, only to find things have changed when they get back because someone stepped on a butterfly.
Xofer