Euclid preparation XLVI. The near-infrared background dipole experiment with Euclid