Chosen Solution

Tv samsung ua40f5000ar Chromcast 3 Audio is working but the screen is blank even after disconnecting the chromecast or changing the source

Seems to me like a resolution issue. If you have another TV maybe try plugging it in there and seeing if you can play around with the display setting of the chrome cast so that you can use it on the other TV you want to use it on.