Question: what is the square icon on my iphone?
Answer: The icon represents AirPlay, Apple's technology that lets you mirror screen content from one device to another. The icon indicates an active AirPlay session where your iPhone screen is mirrored on an AirPlay compatible device (Apple TV for e.g.).