Both Midlothian and Mansfield Lake Ridge struggled from the field in the first half, but the Panthers found their groove in the second.
Behind a game-high 18 points from Caleb Jordan, the Panthers outscored the host Eagles 37-25 after halftime for the crucial District 10-5A win, 56-36.
"It was an ugly game with a lot of mental errors, but we won the ballgame, and it got us to the 20-win plateau, which is a special thing in high school and college basketball," Midlothian head boys' basketball coach Steven Middleton said. "Any time you can win 20 games in a season is special. This is the second year in a row that we have won 20 games, so it is very, very rewarding to reach that plateau and it pushes us a little bit closer to the possibility of making the playoffs."
In addition to Jordan's 18, Evan Marshall scored 15 and Kaden Archie finished with 11.
Zeke Bennett, Nyk Madison and Jon McDonald all chipped in four points, each.
"I'm happy Evan Marshall came and had a big night tonight," Middleton said. "He really shot the ball well in the second half and got us going."
Joy Madimba and Tahlik Chavez scored 11 and 10 points, respectively, to lead Lake Ridge.
The win moved No. 13 Midlothian to 20-9 on the season and 6-5 in District 10-5A. With three games to play, the Panthers are currently tied with (16-9, 6-5) Red Oak for the final district playoff spot.
The Panthers host Mansfield Summit at Panther Arena on Tuesday, Feb. 6. Tip-off is at 8 p.m.
"We have to get ready for Mansfield Summit," Middleton said. "We also show a lot of film of our mistakes and what we did well and try to learn from it. We have some maturing to do."