Actually, "gerrymandering" has been around since the early 1800s and almost since our inception.
Fun fact: The term "gerrymander" stems from this Gilbert Stuart cartoon of a Massachusetts electoral district twisted beyond all reason. Stuart thought the shape of the district resembled a salamander, but his friend who showed him the original map called it a "Gerry-mander" after Massachusetts Governor Elbridge Gerry, who approved rearranging district lines for political advantage.

The practice of manipulating voting districts to secure political power predates the fearsome Gerry-mander. In 18th-century England, political operatives created "rotten boroughs" with only a few eligible voters, making it easy for politicians to buy the residents' votes and gain seats in Parliament.
After English colonists founded the United States, gerrymandering "began almost immediately," says Thomas Hunter, a political science professor at the University of West Georgia. There's evidence that Virginia, North Carolina and South Carolina drew districts to benefit some candidates over others in the late 18th and early 19th centuries. Still, these gerrymandered districts were relatively "normal"-looking compared to what would come later.
https://www.history.com/articles/gerrymandering-origins-voting I avoid temptation unless I can’t resist it.