Yes, you can connect a smartphone to a projector in multiple ways. You can connect them wirelessly with the help of a WiFi connection. You can use a wired connection if your projector does not have WiFi. You can get a USB-C (for Type C phones) or a micro-USB to HDMI converter to connect your phone to the projector. It is usually better with a wired connection since there is no virtually no latency.