frontend
                                
                                
                                
                                    frontend copied to clipboard
                            
                            
                            
                        Visibility leaving blank spaces on casted dashboard
Checklist
- [x] I have updated to the latest available Home Assistant version.
 - [x] I have cleared the cache of my browser.
 - [x] I have tried a different browser to see if it is related to my browser.
 - [ ] I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.
 
Describe the issue you are experiencing
When casting a dashboard to Chromecast, there are blank spaces visible on the casted display where visibility is being used to hide certain cards.  These blank spaces are only shown on the casted display - they are not visible when viewing the same dashboard via a laptop web browser.
Describe the behavior you expected
Hidden cards should not leave blank spaces on a casted dashboard.
Steps to reproduce the issue
- Create a dashboard with a hidden card as the first element using visibility
 - Add other cards below the hidden card
 - Cash the dashboard and observe the blank space displayed on the casted dashboard where the hidden card is located
 - Compare this to what is displayed (no blank space) when viewing the same dashboard via web browser
 
What version of Home Assistant Core has the issue?
2025.5.3
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue?
Chromecast
Which operating system are you using to run this browser?
No response
State of relevant entities
Problem-relevant frontend configuration
JavaScript errors shown in your browser console/inspector
Additional information
No response