Running gag

literary device that takes the form of an amusing joke or a comical reference and appears repeatedly throughout a work of literature or other form of storytelling

A running gag is an humorous joke or reference that is used several times in a work or series of works. A famous example of a running gag is the Couch gag in the opening of The Simpsons.