I'm thinking about the airgun, scope, and bubble level in terms of a system consisting of axes similar to that in an archery sight. I won't bore you with the archery details, as there are plenty of youtube videos for that. ;-)
I see the system having 3 axes. Axis 1: Scope to line of bore. Axis 2: Reticle to line of bore. Axis 3: Bubble at 90 degrees to Scope/Line of Bore. Bubble at 90 degrees is not the same as the bubble bracket being at 90 degrees. The bubble can be misaligned in the bracket.
So here's the system parts. Yes, you have to use your imagination.
Ideally the scope will align with the bore and not be misaligned because of “bad rings”..
Once the scope is aligned to the bore (axis 1)..
..and the vertical reticle adjusted to intersect the bore (axis 2), then a bubble level can be mounted to the scope and adjusted to the reticle (axis 3). Assuming the bubble level is machined and assembled properly, when mounted, it will be perpendicular (90 degrees) to the line of bore.
When everything is properly aligned, titling the system up or down will not cause “bubble runout”.
When the bubble in the bubble assembly is not perpendicular to the scope and line of bore, it can appear to be level when the system is level.
If poorly aligned, assembled, or constructed, the bubble will “runout” left or right depending on whether the system is aimed uphill or downhill.
This condition, bubble axis inside the container/holder not 90 degrees to the line of bore, will cause the vertical reticle to cant when the shooter attempts to center the bubble.
High-end archery sights have a 3rd Axis micro-adjust so the vagaries of bubble level axis and machined axis and glued axis can be adjusted to a true 90 degrees. So no left or right impacts when shooting uphill or downhill.
https://www.azlyrics.com/lyrics/styx/toomuchtimeonmyhands.html