There are HiFi speakers that are designed to provide the correct frequency response when placed near a wall and sound wrong otherwise. "Klipschorn" would be an extreme example of this category.
There are other speakers (actually the majority) that are not designed to be placed against a wall, but, if you use digital room correction features in your HiFi receiver, they still have to be placed against the wall, so that there is less work for the DSP to do.
There are also so-called "electrostatic speakers" (e.g. "Quad ESL 2912") which absolutely must not be placed near the wall, because the rear wave is in counter-phase (unlike the traditional speakers), and will cancel the front wave exactly.