I have a trap like that. It's a metal box, about the size of a biscuit tin, with a glass top and a kind of miniature maze inside. The mouse has to climb a small ramp to get in, then it snaps back up behind them and traps them inside.
You can release the mouse afterwards, but make sure you take it well away from your house before you do it. Ideally, away from everyone else's houses as well, because they may not be as humane as you.