AirPlay is a built-in feature of the iOS. But if the AirPlay icon is missing from Control Center, you can check whether you turn on WiFi since AirPlay only works over Wi-Fi, not cellular networks. And you need to make sure iPhone and AirPlay device are on the same Wi-Fi network.