كتب : Ahmad Saied
Mido came off the bench in the 71st minute for Dong-Gook Lee, who opened the scoring in the 15th minute.
Mansfield defender Jake Buxton converted the ball into his own net in the 87th minute to seal Boro's victory.
The Egypt striker has been sidelined since October after picking up a pelvic injury against Chelsea.
He took part for a full half with Middlesbrough reserves three days ago against Newcastle. His side lost 5-0.