Odd behavior with calendar card

For my tablet displays I have a bunch of conditional cards that cycle trough to display different displays. Recently the conditional card that holds the calendar has run into issues. When the dashboard first loads the calendar card displays correctly but then once the card is hidden and then shown again all the formatting for the calendar card breaks, and when in month view it breaks so bad that the page freezes. I have not been able to track down any obvious issues so now turning to the community for help.

Steps to try and resolve the issue.

Make sure all components are updated

Check raw yaml for any loose left-over/broken code (though it is a complex dashboard so may have missed something)

Remove all custom theme

Add calendar card to a vertical stack to try and act as a frame for the calendar card

Test calendar card on separate dashboard inside of a conditional card with a on off helper (same behavior)
Code for isolated test

views:
  - type: panel
    title: Calendar Display
    path: calendar-display
    badges: []
    cards:
      - type: vertical-stack
        cards:
          - type: entity
            entity: input_boolean.test
          - type: conditional
            conditions:
              - entity: input_boolean.test
                state: 'on'
            card:
              initial_view: listWeek
              type: calendar
              entities:
                - calendar.o365_ian

Here is the yaml for the dashboard

kiosk_mode:
  hide_header: true
  hide_sidebar: true
theme: ios-dark-mode-dark-blue
views:
  - type: panel
    title: Calendar Display
    path: calendar-display
    badges: []
    cards:
      - type: vertical-stack
        cards:
          - type: horizontal-stack
            cards:
              - type: conditional
                conditions:
                  - entity: input_select.display_1080ph_element
                    state: Ian Calendar
                card:
                  type: vertical-stack
                  cards:
                    - initial_view: listWeek
                      type: calendar
                      entities:
                        - calendar.o365_ian
              - type: conditional
                conditions:
                  - entity: input_select.display_1080ph_element
                    state: General Information
                card:
                  type: vertical-stack
                  cards:
                    - type: horizontal-stack
                      cards:
                        - type: vertical-stack
                          cards:
                            - type: custom:clock-weather-card
                              entity: weather.pirateweather_week
                              sun_entity: sun.sun
                              forecast_days: 6
                            - type: custom:hourly-weather
                              entity: weather.pirateweather_hourly
                              icons: true
                              show_wind: 'false'
                              show_precipitation_probability: false
                        - type: vertical-stack
                          cards:
                            - type: custom:mushroom-title-card
                              title: General Information
                              alignment: center
                            - type: custom:todoist-card
                              entity: sensor.to_do_list
                              show_header: true
                              show_completed: 1
                              show_item_add: true
                              show_item_close: true
                              show_item_delete: false
                              only_today_overdue: false
              - type: conditional
                conditions:
                  - entity: input_select.display_1080ph_element
                    state: Lights
                card:
                  type: vertical-stack
                  cards:
                    - type: custom:mushroom-title-card
                      title: Lights
                    - type: horizontal-stack
                      cards:
                        - type: vertical-stack
                          cards:
                            - type: custom:mushroom-title-card
                              title: Outdoor
                            - type: custom:mushroom-light-card
                              entity: light.outdoor_lights
                              name: ''
                              layout: vertical
                            - square: false
                              columns: 2
                              type: grid
                              cards:
                                - type: custom:mushroom-light-card
                                  entity: light.front_lights
                                  name: 'Front '
                                - type: custom:mushroom-light-card
                                  entity: light.back_lights
                                  name: Back
                        - type: vertical-stack
                          cards:
                            - type: custom:mushroom-title-card
                              title: 1st Floor
                            - type: custom:mushroom-light-card
                              entity: light.first_floor_lights
                              name: ''
                              layout: vertical
                            - square: false
                              columns: 2
                              type: grid
                              cards:
                                - type: custom:mushroom-light-card
                                  entity: light.garage_entry_lights
                                  name: Garage Entry
                                - type: custom:mushroom-light-card
                                  entity: light.kitchen_lights
                                  name: Kitchen
                                - type: custom:mushroom-light-card
                                  entity: light.dining_room_lights
                                  name: Dining Room
                                - type: custom:mushroom-light-card
                                  entity: light.living_room_lights
                                  name: Living Room
                                - type: custom:mushroom-light-card
                                  entity: light.foyer_lights
                                  name: Foyer
                                - type: custom:mushroom-light-card
                                  entity: light.front_entry_lights
                                  name: Front Entry
                        - type: vertical-stack
                          cards:
                            - type: custom:mushroom-title-card
                              title: 2nd Floor
                            - type: custom:mushroom-light-card
                              entity: light.second_floor_lights
                              name: ''
                              layout: vertical
                            - square: false
                              columns: 2
                              type: grid
                              cards:
                                - type: custom:mushroom-light-card
                                  entity: light.stair_lights
                                  name: Stair
                                - type: custom:mushroom-light-card
                                  entity: light.hall_lights
                                  name: Hall
                                - type: custom:mushroom-light-card
                                  entity: light.master_bedroom_lights
                                  name: Master Bedroom
                                - type: custom:mushroom-light-card
                                  entity: light.guest_room_lights
                                  name: Guest Room
                                - type: custom:mushroom-light-card
                                  entity: light.office_lights
                                  name: Office
                                  show_color_temp_control: true
                                  show_color_control: true
                                  show_brightness_control: true
                                  collapsible_controls: true
                                - type: custom:mushroom-light-card
                                  entity: light.library_lights
                                  name: Library
              - type: conditional
                conditions:
                  - entity: input_select.display_1080ph_element
                    state: House State
                card:
                  type: vertical-stack
                  cards:
                    - type: horizontal-stack
                      cards:
                        - type: vertical-stack
                          cards:
                            - type: custom:mushroom-title-card
                              title: House Sate
                            - type: custom:mushroom-alarm-control-panel-card
                              entity: alarm_control_panel.alexa_guard_7808f
                              states:
                                - armed_home
                                - armed_away
                            - type: horizontal-stack
                              cards:
                                - type: custom:mushroom-template-card
                                  primary: Thermostat
                                  secondary: >
                                    {%if is_state('binary_sensor.cool', 'on')%}
                                    Cooling Mode

                                    {%elif is_state('binary_sensor.heat',
                                    'on')%} Heating Mode

                                    {%else%} ERROR

                                    {%endif%}
                                  icon: >
                                    {%if is_state('binary_sensor.cool', 'on')%}
                                    mdi:snowflake

                                    {%elif is_state('binary_sensor.heat',
                                    'on')%} mdi:weather-sunny

                                    {%else%} mdi:alert-circle-outline

                                    {%endif%}
                                  tap_action:
                                    action: none
                                  hold_action:
                                    action: more-info
                                  double_tap_action:
                                    action: none
                                  icon_color: >
                                    {%if is_state('binary_sensor.cool', 'on')%}
                                    blue

                                    {%elif is_state('binary_sensor.heat',
                                    'on')%} red

                                    {%else%} white

                                    {%endif%}
                                  layout: horizontal
                                  entity: ''
                                - type: custom:mushroom-template-card
                                  primary: Power Cost
                                  secondary: >-
                                    {%if is_state('input_select.power_cost',
                                    'On-peak')%} On-peak

                                    {%elif is_state('input_select.power_cost',
                                    'Off-peak')%} Off-peak

                                    {%elif is_state('input_select.power_cost',
                                    'Super Off-peak')%} Super Off-peak

                                    {%else%} ERROR

                                    {%endif%}
                                  icon: mdi:lightning-bolt-circle
                                  tap_action:
                                    action: none
                                  hold_action:
                                    action: more-info
                                  double_tap_action:
                                    action: none
                                  icon_color: >-
                                    {%if is_state('input_select.power_cost',
                                    'On-peak')%} red

                                    {%elif is_state('input_select.power_cost',
                                    'Off-peak')%} yellow

                                    {%elif is_state('input_select.power_cost',
                                    'Super Off-peak')%} green

                                    {%else%} mdi:alert-circle-outline

                                    {%endif%}
                                  layout: horizontal
                                  entity: input_select.power_cost
                            - type: custom:mushroom-template-card
                              primary: >-
                                The windows are 

                                {%if is_state('input_select.window_status',
                                'Closed')%} closed 

                                {%elif is_state('input_select.window_status',
                                'Open')%} open 

                                {%else%} ERROR 

                                {%endif%}

                                {%if is_state('input_boolean.window_matches',
                                'off')%}

                                and should be 

                                {%if is_state('input_select.windows_suggestion',
                                'Should Be Closed')%} closed

                                {%elif
                                is_state('input_select.windows_suggestion',
                                'Should Be Open')%} open

                                {%else%} ERROR 

                                {%endif%}

                                {%elif is_state('input_boolean.window_matches',
                                'on')%}

                                {%else%} ERROR 

                                {%endif%}
                              secondary: ''
                              icon: >
                                {%if is_state('input_select.window_status',
                                'Closed')%} mdi:window-closed

                                {%elif is_state('input_select.window_status',
                                'Open')%} mdi:window-open

                                {%else%} mdi:alert-circle-outline

                                {%endif%}
                              tap_action:
                                action: call-service
                                service: script.window_button
                                data: {}
                                target: {}
                              hold_action:
                                action: more-info
                              double_tap_action:
                                action: none
                              icon_color: >-
                                {%if is_state('input_boolean.window_matches',
                                'on')%} green

                                {%elif is_state('input_boolean.window_matches',
                                'off')%} red

                                {%else%} white

                                {%endif%}
                              layout: horizontal
                              entity: input_select.window_status
                            - type: custom:mushroom-template-card
                              primary: Is Dark Outside
                              secondary: >
                                {%if is_state('input_boolean.is_dark_outside',
                                'on')%} Yes

                                {%else%} No

                                {%endif%}
                              icon: >
                                {%if is_state('input_boolean.is_dark_outside',
                                'on')%} mdi:weather-night

                                {%else%} mdi:weather-sunny

                                {%endif%}
                              tap_action:
                                action: none
                              hold_action:
                                action: more-info
                              double_tap_action:
                                action: none
                              icon_color: >-
                                {%if is_state('input_boolean.is_dark_outside',
                                'on')%} indigo

                                {%else%} yellow

                                {%endif%}
                              entity: input_boolean.is_dark_outside
                            - type: custom:mushroom-template-card
                              primary: Echo
                              secondary: >-
                                {%if is_state('switch.echo_do_not_disturb',
                                'on')%} Do Not Disturb

                                {%else%} Normal

                                {%endif%}
                              icon: >
                                {%if is_state('switch.echo_do_not_disturb',
                                'on')%} mdi:volume-mute

                                {%else%} mdi:volume-source

                                {%endif%}
                              entity: switch.echo_do_not_disturb
                              double_tap_action:
                                action: none
                              icon_color: >-
                                {%if is_state('switch.echo_do_not_disturb',
                                'on')%} red

                                {%else%} green

                                {%endif%}
                              tap_action:
                                action: call-service
                                service: switch.toggle
                                service_data: {}
                                target:
                                  entity_id: switch.echo_do_not_disturb
                              hold_action:
                                action: more-info
                            - type: custom:mushroom-template-card
                              primary: Guest Mode
                              secondary: >
                                {%if is_state('input_boolean.guest_mode',
                                'on')%} On

                                {%else%} Off

                                {%endif%}
                              icon: >
                                {%if is_state('input_boolean.guest_mode',
                                'on')%} mdi:account-group

                                {%else%} mdi:account

                                {%endif%}
                              tap_action:
                                action: toggle
                              hold_action:
                                action: more-info
                              double_tap_action:
                                action: none
                              icon_color: >-
                                {%if is_state('input_boolean.guest_mode',
                                'on')%} green

                                {%else%} red

                                {%endif%}
                              entity: input_boolean.guest_mode
                        - type: vertical-stack
                          cards:
                            - type: custom:mushroom-title-card
                              title: Cleaning
                            - type: custom:mushroom-template-card
                              primary: Has the Upstairs Been Vacuumed
                              secondary: >
                                {%if is_state('input_select.upstairs_vacuumed',
                                'Yes')%} Yes

                                {%else%} No

                                {%endif%}
                              icon: >
                                {%if is_state('input_select.upstairs_vacuumed',
                                'Yes')%} mdi:check-bold

                                {%else%} mdi:close

                                {%endif%}
                              tap_action:
                                action: call-service
                                service: automation.trigger
                                service_data: {}
                                target:
                                  entity_id: automation.manual_clean
                              hold_action:
                                action: more-info
                              double_tap_action:
                                action: none
                              icon_color: >-
                                {%if is_state('input_select.upstairs_vacuumed',
                                'Yes')%} green

                                {%else%} red

                                {%endif%}
                              entity: input_select.upstairs_vacuumed
                            - type: custom:mushroom-template-card
                              primary: Has the Downstairs Been Vacuumed
                              secondary: >
                                {%if
                                is_state('input_select.downstairs_vacuumed',
                                'Yes')%} Yes

                                {%else%} No

                                {%endif%}
                              icon: >
                                {%if
                                is_state('input_select.downstairs_vacuumed',
                                'Yes')%} mdi:check-bold

                                {%else%} mdi:close

                                {%endif%}
                              tap_action:
                                action: call-service
                                service: automation.trigger
                                target:
                                  entity_id: automation.vacuum_downstairs_manual_clean
                                data: {}
                              hold_action:
                                action: more-info
                              double_tap_action:
                                action: none
                              icon_color: >-
                                {%if
                                is_state('input_select.downstairs_vacuumed',
                                'Yes')%} green

                                {%else%} red

                                {%endif%}
                              entity: input_select.downstairs_vacuumed
                            - type: custom:mushroom-title-card
                              title: Wash
                            - type: horizontal-stack
                              cards:
                                - type: custom:mushroom-template-card
                                  primary: Washer
                                  secondary: >-
                                    {% if is_state("sensor.washer", "on") %}
                                    Running {{ state_attr("sensor.washer",
                                    "current_course") }} 

                                    Currently {{ state_attr("sensor.washer",
                                    "run_state") }} 

                                    {{ state_attr("sensor.washer",
                                    "initial_time") }} total

                                    {{ state_attr("sensor.washer",
                                    "remain_time") }} to go {% else %} Off {%
                                    endif %}
                                  icon: mdi:washing-machine
                                  entity: sensor.washer
                                  multiline_secondary: true
                                  icon_color: >-
                                    {{ "indigo" if is_state("sensor.washer",
                                    "on") else "" }}
                                  tap_action:
                                    action: more-info
                                - type: custom:mushroom-template-card
                                  primary: Dryer
                                  secondary: >-
                                    {% if is_state("sensor.dryer", "on") %}
                                    Running {{ state_attr("sensor.dryer",
                                    "current_course") }}

                                    Currently {{ state_attr("sensor.dryer",
                                    "run_state") }}

                                    {{ state_attr("sensor.dryer",
                                    "initial_time") }} total

                                    {{ state_attr("sensor.dryer", "remain_time")
                                    }} to go {% else %} Off {% endif %}
                                  icon: mdi:tumble-dryer
                                  entity: sensor.dryer
                                  multiline_secondary: true
                                  icon_color: >-
                                    {{ "indigo" if is_state("sensor.dryer",
                                    "on") else "" }}
                                  tap_action:
                                    action: more-info
                        - type: vertical-stack
                          cards:
                            - type: custom:mushroom-title-card
                              title: Garage Doors
                            - type: custom:mushroom-cover-card
                              entity: cover.primarygaragedoor
                              name: Primary
                            - type: custom:mushroom-cover-card
                              entity: cover.secondarygaragedoor
                              name: Secondary
          - type: horizontal-stack
            cards:
              - type: custom:mushroom-template-card
                entity: input_boolean.display_1080ph_loop
                layout: vertical
                tap_action:
                  action: toggle
                hold_action:
                  action: more-info
                double_tap_action:
                  action: none
                icon: >-
                  {%if is_state('input_boolean.display_1080ph_loop', 'on')%}
                  mdi:repeat

                  {%else%} mdi:repeat-off

                  {%endif%}
                icon_color: >-
                  {%if is_state('input_boolean.display_1080ph_loop', 'on')%}
                  green

                  {%else%} red

                  {%endif%}
              - type: custom:mushroom-template-card
                entity: input_select.display_1080ph_element
                layout: vertical
                tap_action:
                  action: call-service
                  service: input_select.select_option
                  service_data:
                    option: Ian Calendar
                  target:
                    entity_id: input_select.display_1080ph_element
                hold_action:
                  action: more-info
                double_tap_action:
                  action: none
                icon: >-
                  {%if is_state('input_select.display_1080ph_element', 'Ian
                  Calendar')%} mdi:calendar-blank-outline

                  {%else%} mdi:calendar-remove

                  {%endif%}
                icon_color: >-
                  {%if is_state('input_select.display_1080ph_element', 'Ian
                  Calendar')%} green

                  {%else%} red

                  {%endif%}
              - type: custom:mushroom-template-card
                entity: input_select.display_1080ph_element
                layout: vertical
                tap_action:
                  action: call-service
                  service: input_select.select_option
                  service_data:
                    option: General Information
                  target:
                    entity_id: input_select.display_1080ph_element
                hold_action:
                  action: more-info
                double_tap_action:
                  action: none
                icon: >-
                  {%if is_state('input_select.display_1080ph_element', 'General
                  Information')%} mdi:information-outline

                  {%else%} mdi:information-off-outline

                  {%endif%}
                icon_color: >-
                  {%if is_state('input_select.display_1080ph_element', 'General
                  Information')%} green

                  {%else%} red

                  {%endif%}
              - type: custom:mushroom-template-card
                entity: input_select.display_1080ph_element
                layout: vertical
                tap_action:
                  action: call-service
                  service: input_select.select_option
                  service_data:
                    option: Lights
                  target:
                    entity_id: input_select.display_1080ph_element
                hold_action:
                  action: more-info
                double_tap_action:
                  action: none
                icon: >-
                  {%if is_state('input_select.display_1080ph_element',
                  'Lights')%} mdi:lightbulb-group-outline

                  {%else%} mdi:lightbulb-group-off-outline

                  {%endif%}
                icon_color: >-
                  {%if is_state('input_select.display_1080ph_element',
                  'Lights')%} green

                  {%else%} red

                  {%endif%}
              - type: custom:mushroom-template-card
                entity: input_select.display_1080ph_element
                layout: vertical
                tap_action:
                  action: call-service
                  service: input_select.select_option
                  service_data:
                    option: House State
                  target:
                    entity_id: input_select.display_1080ph_element
                hold_action:
                  action: more-info
                double_tap_action:
                  action: none
                icon: >-
                  {%if is_state('input_select.display_1080ph_element', 'House
                  State')%} mdi:home-outline

                  {%else%} mdi:home-remove-outline

                  {%endif%}
                icon_color: >-
                  {%if is_state('input_select.display_1080ph_element', 'House
                  State')%} green

                  {%else%} red

                  {%endif%}
          - type: horizontal-stack
            cards:
              - type: custom:mushroom-template-card
                primary: ''
                secondary: ''
                icon: mdi:dice-d20-outline
                layout: vertical
                tap_action:
                  action: navigate
                  navigation_path: https://ijha.duckdns.org:8123/lovelace-dnd/dnd
                hold_action:
                  action: none
                double_tap_action:
                  action: none
                entity: input_boolean.dnd_mode
                fill_container: false
                icon_color: yellow
              - type: custom:mushroom-template-card
                primary: ''
                secondary: ''
                icon: mdi:format-list-checks
                icon_color: yellow
                fill_container: false
                layout: vertical
                tap_action:
                  action: navigate
                  navigation_path: https://ijha.duckdns.org:8123/lovelace-lists/0
              - type: custom:mushroom-template-card
                primary: ''
                secondary: ''
                icon: mdi:cctv
                icon_color: yellow
                fill_container: true
                layout: vertical
                tap_action:
                  action: navigate
                  navigation_path: https://ijha.duckdns.org:8123/lovelace-cameras/home
                hold_action:
                  action: none
                double_tap_action:
                  action: none
              - type: custom:mushroom-template-card
                primary: ''
                secondary: ''
                icon: mdi:cog
                icon_color: yellow
                fill_container: true
                layout: vertical
                tap_action:
                  action: navigate
                  navigation_path: https://ijha.duckdns.org:8123/lovelace-settings/0
                hold_action:
                  action: none
                double_tap_action:
                  action: none
              - type: custom:mushroom-template-card
                primary: ''
                secondary: ''
                icon: ''
                icon_color: ''
                fill_container: true
                layout: vertical

More people, including me, have this issue. There already has been made an issue for it on GitHub.