It first happens on Level 18 and there's text on the right side of the screen explaining that a ring is locked while the cube is on it.
Ah! I must have ended on an earlier one. 😅