Open external pocket
Measure the narrowest point of the pocket mouth and where the widest part of the bottle will rest. Measure from the floor of the pocket to the lip where it supports the bottle. Put the filled bottle in, then move the bag through your usual lift and set-down motion. See whether the bottle shifts or slides out.
Internal or zipped pocket
Measure the clear width and depth at the neck of the pocket, plus its closed height. With the bottle inside, run a ruler across the neighboring main compartment. If the pocket wall bows inward, record the new available depth before deciding the lunch box fits.
Illustrative example
An 8 cm wide, 24 cm tall bottle in an 8.5 × 8.1 × 25 cm zip pocket has 0.5 cm of width, 0.1 cm of depth and 1 cm of height left. An open pocket supporting the same bottle for 15 cm covers 62.5% of its height. That percentage describes coverage. Test retention in the actual pocket.