If you are casting video streaming apps like YouTube, Amazon Prime, Netflix, or Disney+, the source content is encrypted and you can only cast it by using AirPlay, Miracast, or Chromecast from a desktop or laptop.
For Chromecast, please select [Cast the entire screen] when casting.