Hi , chromecast or cast with dlna doesn't work with same wifi mobile and tv ?!

How cast video on tv with mi video in redmi note 9

I work with web video caster or xcast app very vell but mi video app doesn't work