How to secure wardrobe to wall if 1.25" gap exists between wall and wardrobe
I'd fasten a decorative/coordinating rail to the upper back of the wardrobe, or to the wall in that position, such that it appears to be a component of the wardrobe. Screw through the wardrobe back and the block into the wall. Its design depends on the design of the cabinet.