This is according to a support document on Apple’s website in which they remind and caution customers that they should not use the chemical for cleaning their products. Apple acknowledges that some might want to use a disinfectant to clean their products and states that some are okay for use, but hydrogen peroxide is not one of them.
According to Apple, “Using a 70 percent isopropyl alcohol wipe, 75 percent ethyl alcohol wipe, or Clorox Disinfecting Wipes, you may gently wipe the hard, nonporous surfaces of your Apple product, such as the display, keyboard, or other exterior surfaces. Don’t use products containing bleach or hydrogen peroxide.”
Apple also reminds users not to get moisture in the openings of their devices, and also not to submerge them in the cleaning liquid, so do keep that in mind lest you end up not only damaging your device, but voiding the warranty in the process.