As for wifi display, i do not have a smart TV but I have a IPTV box from Huawei produced for a local company. It has built in YouTube, and when I press cast button on YouTube app on my phone, it does connect to it without any problem.
Not sure if it is same with screen casting.