Preheat your air fryer to 400°F (200°C) for 5 minutes.
Remove the husks from the corn and, if needed, cut the ears in half so they fit comfortably in the air fryer basket.
Lightly brush the corn with olive oil or spray with cooking spray to prevent sticking.
Place the corn in the air fryer basket, making sure the ears are arranged in a single layer.
Cook at 400°F (200°C) for 12-15 minutes, turning the corn halfway through, until the kernels are golden and slightly charred.
While the corn cooks, mix the mayonnaise, sour cream, cotija cheese, chili powder, lime juice, and salt in a bowl until smooth and well combined.
Once the corn is done, remove it from the air fryer and generously brush the creamy sauce over the corn.
Sprinkle extra cotija cheese and a pinch of chili powder over the corn for added flavor.
Serve the corn with lime wedges and fresh cilantro (optional) for garnish and extra flavor.