From the start of the year, Senate Democrats knew they were unlikely to catch up to the Republican Party’s significant cash advantage.

So they devised a way to make their money go further, by investing heavily in a digital advertising program that strategists now say became one of the building blocks of their sweeping success in last week’s elections.

The Senate Majority PAC, the political arm of Senate Democrats, spent $215 million on its digital program this cycle, a 60 percent increase from such spending in 2024, Lauren French, the group’s communications director, said in an interview.

Buying ad time on streaming services and smart TVs is not only cheaper than doing so on broadcast or cable, but it also allows advertisers to more precisely target the voters they are trying to influence, whose fractured viewing habits limit the reach of traditional ads.

One of the key groups they reached this way, Ms. French said, was younger voters. Indeed, voters between the ages of 18 and 29 shifted toward the Democrats by 34 points, a New York Times analysis found, the most dramatic swing of any demographic.

The emphasis on digital spending marks a full circle moment for the party, which had been playing catch up to the Republicans’ online presence for nearly a decade, but now has a moment to show off its progress. In 2024, when Democrats had the financial upper hand, President Trump’s super PAC invested significantly in ads on streaming services and smart TVs.