To prepare the aromatics, cut the red chili, green chili, garlic, and scallions.
To season and coat the shrimp, in a bowl, add the shrimp and sprinkle in the salt, white pepper, and black pepper. Crack in the egg, then mix well. Add the cornstarch and toss until the shrimp is evenly coated.
To pan-fry the shrimp, in a pan, heat the cooking oil over medium-high heat. Once hot, arrange the shrimp in a single layer, then fry for about 1 minute and 20 seconds per side, until lightly golden and about 80% cooked through. Remove and drain.
To stir-fry the aromatics, in a wok, heat 1 tablespoon of cooking oil over medium heat. Add the salt, white pepper, black pepper, chilies, and garlic, then stir-fry for about 10 seconds until fragrant.
To combine and finish, return the shrimp to the wok and toss to combine. Add the scallions, then give it a final quick toss before serving.