We report the X-ray polarization properties of the high-synchrotron-peaked (HSP) blazar PKS 2155$-$304 based on observations with the Imaging X-ray Polarimetry Explorer (IXPE). We observed the source between Oct 27 and Nov 7, 2023. We also conducted an extensive contemporaneous multiwavelength (MW) campaign. We find that during the first half ($T_1$) of the IXPE pointing, the source exhibited the highest X-ray polarization degree detected for an HSP blazar thus far, (30.7pm 2.0)<!PCT!>; this dropped to (15.3pm 2.1)<!PCT!> during the second half ($T_2$). The X-ray polarization angle remained stable during the IXPE pointing at 129.4 and 125.4 during $T_1$ and $T_2$, respectively. Meanwhile, the optical polarization degree remained stable during the IXPE pointing, with average host-galaxy-corrected values of (4.3pm 0.7)<!PCT!> and (3.8pm 0.9)<!PCT!> during the $T_1$ and $T_2$, respectively. During the IXPE pointing, the optical polarization angle changed achromatically from sim 140 to sim 90 and back to sim 130 Despite several attempts, we only detected (99.7<!PCT!> conf.) the radio polarization once (during $T_2$, at 225.5 GHz): with degree (1.7pm 0.4)<!PCT!> and angle 112.5 The direction of the broad pc-scale jet is rather ambiguous and has been found to point to the east and south at different epochs; however, on larger scales (> 1.5 pc) the jet points toward the southeast (sim 135 similarly to all of the MW polarization angles. Moreover, the X-ray-to-optical polarization degree ratios of sim 7 and sim 4 during $T_1$ and $T_2$, respectively, are similar to previous IXPE results for several HSP blazars. These findings, combined with the lack of correlation of temporal variability between the MW polarization properties, agree with an energy-stratified shock-acceleration scenario in HSP blazars.