The Yankees may soon become a major-league thorn in the side of New York’s cable providers.

The Bronx Bombers, working with tech giant Amazon, are gearing up to become the first Major League Baseball team to let fans watch games on their phones or laptops without a cable subscription — a bid to win over millennials who are cutting ties with cable TV, The Post has learned.

The plan by the Yankees’ YES cable-TV network is to allow online streaming for a limited number of Yankees games — possibly on Amazon’s Prime Video service — starting as soon as the 2020 baseball season, sources said. The ultimate goal is to provide an annual streaming package at a cost — say one year for $99, sources said.

The move comes as the Yankees saw its TV ratings drop 17% this year — despite the team winning their division. While earlier game times were a main culprit, cord-cutting also played a role, sources said.

“The Yankees will drill down and try to develop a real good streaming product,” a source with knowledge of the streaming plan told The Post. Fans could get “some” games as soon as next year, but not all, this person added.

Making the move possible is a unanimous vote last month by all MLB team owners to OK the streaming of local games, a practice known as in-market streaming. Prior to that vote, in-market streaming rights belonged to MLB, not the teams, and MLB sold those rights to individual regional sports networks, or RSNs, like Fox and YES for $2 million a year.

The vote may seem like a game-changer, but it could be years before most teams are able to start streaming their games due to complicated contracts with local cable providers and the regional sports networks that carry their games.

The Yankees have it easier because the team owns 20% of its local TV network, which means it won’t be fighting with YES over the streaming rights.

Amazon — whose Prime Video service has already struck a number of live-sports streaming deals, including with the English Premier League and with the NFL for 11 “Thursday Night Football” games this season — joined with a group of investors earlier this year, including Blackstone Group and the Sinclair Broadcast Group, to buy an 80% stake in YES valued at $3.5 billion.

The only remaining barrier for the Yankees are the cable companies that carry YES games like Spectrum and Optimum, which could claim that they have the right to air all games, including streamed games, under their contracts with YES, sources said. YES’s contracts with cable companies typically run for three-year periods.

“This is very complicated, with some agreements giving cable companies most-favored-nation status,” the source with knowledge of the Yankees’ streaming plans told The Post.

Other teams that could look to take control of their streaming rights in the coming months include the Kansas City Royals, whose contract with its RSN expires before next season, and the Miami Marlins, whose contract with its RSN expires next year. Both those teams RSNs are owned by Sinclair.

“It’s a work in progress,” a source with direct knowledge of the negotiations told The Post.

It’s not just cord-cutting that has baseball salivating over the prospect of streaming. Stormy negotiations between RSNs and cable companies have historically been known to interrupt games from being broadcast, which makes it harder for fans to watch games.

After Sinclair bought 21 regional sports networks from Fox earlier this year for $10.6 billion, it failed to reach a deal with Dish Network to carry them. Sinclair is also in the middle of tough negotiations with Comcast that threatens to result in the cable giant dropping its RSNs before the new season, a source who negotiates sports media deals told The Post.

Teams working with the Sinclair RSNs could also partner with the conservative broadcasting company to stream games to regain some of these lost viewers.

The Yankees declined to comment on its streaming plans.

When the team sold a stake in YES to Amazon back in August, Yankees Principal Owner Hal Steinbrenner said, “Along with our partners, we look forward to greatly expanding the way that sports content is delivered and consumed by fans everywhere.”