Finely chop the onion, green onion, and spicy chili pepper.
Cut the bacon into bite-sized pieces.
Heat olive oil in a pan and sauté the onion and bacon.
When the onion turns translucent, add the soft tofu and lightly mash it.
Season with salt and black pepper, then add the chopped spicy chili pepper.
Add the tomato sauce and mix well.
Transfer the mixture to a gratin dish.
Generously top with mozzarella cheese.
Bake in a preheated oven at 180°C (356°F) for 15 minutes.
Finish with a sprinkle of parsley.