Get a esp32 module with a usb port and a usb otg cable, connect them to your phone and you're all set.
https://www.amazon.com/HiLetgo-ESP32-S2FN4R2-ESP32-S2-Type-C-Connect/dp/B0B291LZ99/ref=sr_1_12_sspa
If your interested in this chip, this board may work:
https://www.amazon.com/HiLetgo-ESP32-S2FN4R2-ESP32-S2-Type-C-Connect/dp/B0B291LZ99