Reece James' late goal earned Rovers all three points at Fratton Park.
The left-back played as part of a front three as Darren Moore enacted a different kind of game plan in response to injuries and a very direct approach from Portsmouth.
Rovers had dominated the early stages but as the match evened out, it took a magical moment from James to secure the win.
These are the best photos from Darren Moore's 50th game in charge.