Display Jitter

I have observed jitter in several views of my HA instance. The pages are all a combination of horizontal and vertical cards. The combined card, displayed as a panel, can’t find a stable solution on a Lenovo Flex 2-15 running Linux Mint 20.3.
Here is an example of the problem:

Does anybody have a suggestion on how to fix this?

This is caused by the vertical scroll bar appearing and then disappearing for some reason. This may be caused by a card misreporting its height.

What sort of cards are you using in the vertical and horizontal stacks?

This is what is displayed on this particular view:

type: horizontal-stack
  - cards:
      - entity: media_player.roku_streaming_stick
        type: media-control
      - type: media-control
        entity: media_player.sony_bravia_tv
      - entity: media_player.living_room
        type: media-control
        name: sonos
      - type: entities
          - entity: switch.sonos_living_room_subwoofer_enabled
          - entity: switch.sonos_living_room_crossfade
          - entity: switch.sonos_living_room_surround_enabled
    type: vertical-stack
  - type: vertical-stack
      - type: custom:custom-sonos-card
        name: Sonos Livingroom
        groupsTitle: ''
        groupingTitle: ''
        favoritesTitle: ''
        headerImage: ''
          - media_player.living_room
      - type: entities
          - entity: switch.sonos_living_room_night_sound
          - entity: switch.sonos_living_room_speech_enhancement_2

My money would be on this:


Try removing this card and see if the jitter stops.

If it does open an issue with the developer of the card.

Unfortunately, removing that card changes the geometry of the view. With the changed geometry, there is no problem.
You may be right about it being a specific card. I have seen it in other views, but I can’t remember what cards were present in them. I eventually was able to massage the content of the view to a stable arrangement. Some experiments may help me isolate the culprit. I just found that it is only happening with chromium running as a single page link from the taskbar. Not resolved, but thanks for the help.