Heat a pan over medium heat and add and oil for 5-8 minutes. The oil needs to be hot enough to fry the tofu.
Slowly add the tofu and fry until all sides are golden brown, set aside.
In the same pan, lower the heat to low and sauté shallots and garlic until fragrant or when the shallots turn translucent.
Add mushrooms, soy sauce, and allow it to cook for about 5 minutes or until the mushrooms become tender.
Add the fried tofu, chili pepper and sauté for a minute and feel free to add additional chili pepper for more spice.
Add white onions, salt, pepper, then add mayonnaise and sauté for 2 minutes.
Add brown sugar and mix until combined.
Garnish with lime juice, green onions, and serve with steamed rice.