We all faced with the fact that a person is thin and fat at the same time. In this case, a simple surplus or calorie deficit does not help, here you need a recomposition of the body. Body recomposition is a rather long process of body restructuring based on the desire to simultaneously increase muscle tissue and reduce body fat. The main thing you need to know is that building muscle and burning fat is contrary to your energy needs. Muscle building requires an excess of calories, and fat burning - their deficiency. Athletes use classical schemes where the phases of weight gain and calorie restriction alternate. On the day of training (especially immediately after it) an anabolic environment is created, due to an excess of calories, and in the intervals between exercises - a deficit. Even well-trained athletes with this alternation can increase muscle mass and reduce fat content.
In fact, there are a lot of schemes and only taking into account your initial data and practicing you can choose the one that suits you.