The first is to use a wall plate spacer that basically clamps the electrical box to your drywall to prevent unwanted movement ...