Kirby Lee-USA TODAY Sports

Mookie Betts hit his major-league-leading fifth home run and the Los Angeles Dodgers continued to lean on a consistent offense in a 5-4 victory over the visiting San Francisco Giants on Tuesday.

Enrique Hernandez drove in two runs and Freddie Freeman had three hits for the Dodgers, who have scored at least five runs in all eight games.

In a bullpen game, left-hander Ryan Yarbrough (1-0) gave up four runs and seven hits in 4 1/3 innings, while Evan Phillips recorded the last four outs for his third save.

Jorge Soler hit his first home run as a member of the Giants and Michael Conforto had two hits and an RBI as San Francisco lost for the fourth time in six games to open the season.

Giants starter Logan Webb, runner-up last season in the National League Cy Young Award chase, lasted just 3 2/3 innings in his second start. He gave up five runs on seven hits, with two walks and five strikeouts.

Betts singled in the first inning, stole second base and scored on Freeman's single for a 1-0 lead. The Giants moved in front 2-1, getting an RBI single from Nick Ahmed in the second inning and another from Conforto in the third.

Betts tied the game with his home run to left-center, his fourth in six games at Dodger Stadium.

Los Angeles added three runs in the fourth inning, getting an RBI double from Gavin Lux and Hernandez's two-run single for a 5-2 advantage.

The Giants scored their first of two runs in the sixth on Soler's home run off Yarbrough. Thairo Estrada grounded into a forceout to bring home the other run and cut the deficit to 5-4.

Three Dodgers relievers -- Alex Vesia, Michael Grove and Phillips -- held the Giants scoreless over the final 3 2/3 innings.

More must-reads:

TODAY'S BEST
Timberwolves chew up Nuggets to force Game 7
Watch: Chris Kreider's natural third-period hat trick shatters Hurricanes' comeback hopes
Dodgers starter undergoes season-ending UCL surgery
Knicks star ruled out for potential closeout game
Veteran NFL safety will either play for this team or retire in 2024
Former Red Wings head coach linked to open NHL job
How Patriots' Drake Maye has already impressed Jacoby Brissett
LeBron James, Giannis Antetokounmpo, Stephen Curry among Forbes' highest-paid athletes for 2024
Steve Cohen addresses if Mets could again be trade-deadline sellers
Tiger Woods ruins strong first round with sloppy finish at PGA Championship
Xander Schauffele makes history in first round of PGA Championship
NFL responds to speculation about Chiefs schedule and Taylor Swift
Despite hopes for change, NASCAR championship weekend will return to Phoenix in 2025
Chiefs will achieve something not done since 1927 with 2024 schedule
Caitlin Clark's debut was most-watched WNBA game in more than 20 years
Yankees' Aaron Judge comments on resurgence after bad slump
Odell Beckham Jr. reveals why he was 'hesitant' to join Dolphins
Lakers reportedly interested in adding three-time All-Star via trade
Luka Doncic fed off negative reactions in Game 5 win over Thunder
Celtics finally put away undermanned Cavaliers, advance to conference finals