The mirror line X-X is a vertical line, so the mirror image is obtained by interchanging left and right: every feature on the left of the problem figure moves to the right at the same height, and every feature on the right moves to the left at the same height. The top stays at the top and the bottom stays at the bottom.
Reverse the problem figure left to right and compare it with the options.
Option (4) is the exact left-right reversal: the two vertical lines near the top left, the short vertical divider that hangs from the top edge, the L-shaped groups of lines in the middle, the small rectangle at the lower right and the long horizontal line near the bottom all appear in the reversed positions. Option (1) lacks the small rectangle at the lower right, option (2) lacks the short vertical divider at the top, and option (3) has an extra small box at the left.
Answer: (4) the figure given as option 4