Yes, you can take fast food through airport security. However, there are some restrictions. Solid food items can be transported in either your carry-on or checked baggage, while liquid or gel food items larger than 3.4 oz are not permitted in carry-on baggage and should be placed in checked baggage if possible[2].
Liquids, pastes, or gels, including food items like yogurt, soup, jams, and jellies, must be under 3.4 oz[2].
If a food item triggers an alarm during the screening process, it may be subject to additional screening or not allowed through the checkpoint[2].
Citations:
[1] https://www.reddit.com/r/TravelHacks/comments/ya115y/going_through_airport_security_with_food/
[2] https://www.consumerreports.org/consumerist/heres-a-big-updated-list-of-the-foods-you-can-bring-through-airport-security/
[3] https://community.southwest.com/t5/Check-In-Boarding/Can-you-get-through-TSA-with-food/td-p/113582
[4] https://www.cntraveler.com/story/can-you-bring-food-through-airport-security
[5] https://www.afar.com/magazine/can-you-bring-food-through-tsa