There are two ways to mount a soundbar under a wall-mounted TV. The first is a soundbar bracket that clamps to the TV bracket, so the bar moves with the screen. It suits full-motion arms. The second is a pair of wall brackets fixed directly below the TV, which is cleaner on fixed and tilt mounts.
We centre the bar on the screen, not on the wall, and keep a gap so the TV's infrared sensor is not covered. Upward-firing Atmos bars need clear space above them, so we never tuck them under a shelf.
Surround speakers are placed to the side of and slightly behind the main seat, at or just above ear height. Where cables cross the room, we run them along skirting in slim raceways or, on gypsum walls, inside the cavity. Ceiling speakers for Atmos go into gypsum ceilings with the right back boxes.
The soundbar often sits on a media unit rather than the wall. See TV unit and wall panel installation in Dubai for floating units with space for audio gear, and hidden cable management in Dubai for tidy wiring.