Room fit
Measure the space your TV actually leaves you
A 36-inch cabinet does not give you 36 inches for a soundbar. The TV feet, the shelf lip and the cable bend usually decide what fits.
Take three measurements
Measure usable width between obstacles, height up to the bottom of the screen or sensor, and depth from the front edge to the point where a cable can bend comfortably. Use the narrowest point, not the widest part of the cabinet.
Make a paper template
Cut a scrap of paper to the proposed width and depth. Put it where the bar will sit. Leave room behind it for plugs and check the maker’s ventilation instructions. Hold a ruler at the proposed height and test that the TV remote still works.
Compare within that space
The Roku Streambar SE is about 9.6 inches wide, the Bose TV Speaker 2nd Gen about 23.5 inches, and the Sony HT-S100F about 35.5 inches. Width is only a first cut. Put all three measurements and your TV port into the fit tool; skip any model that only just clears on paper.
Check what fits your TV and shelf