An expected layout shift happens when there is user input. For example, when a user clicks a button. On the other hand, an unexpected layout shift occurs when a visible element moves without a user-initiated action. Note that your CLS score only takes into account unexpected layout changes.