When two digits can go only in the same two cells of a house, those cells must hold them. Their other candidates can go.
The diagonals are houses in Sudoku X, so a hidden pair can hide on one.
Worked examples
2 positions from real Sudoku X puzzles on this site, the familiar case first. Step through each one: the board lights what each step talks about, and the arrows show what rules what out.
Two digits, two cells, in a box
In box 8, look for two digits that fit in only two cells.
Two digits, two cells, on a diagonal
Look along the lit diagonal for two digits with only two places.
Where it fits
HardHidden Pair is a Hard technique: Hard Sudoku X puzzles are the first to need it.
The Classic Hidden Pair lesson teaches it on a plain 9×9 board. The Sudoku X overview explains the rule and the levels.
Hidden Pair in the other styles: Jigsaw, Thermo, Windoku, Arrow, Kropki.
Try it on a Hard Sudoku X puzzle. Next Step points it out when it is the move.