Axis rules (like "lock vertical") can't be applied before the first render (because the rule relies on information from the previous render).
Add logic to determine if axis rules are in place before the first render, and if so the first render could be a double render (once without the rules, then apply the rules, then re-render).
Topic came up in Discord #1966 by Boris.