This is a delicate ballance of your macro's added with cardio as needed.
The big one to remember in doing this is muscle weighs more than fat. So you need to:
Use mirror and tape mesure more than scale, but scale is important also in tracking your progress as long as you weight in right away after you pee when you wake up.
This will take out the daily intake vereable. Threw out the day every little thing will change your true weight.
If your macro's are out of balance, even if you hit your cals on point you won't accomplish your goal. Your body will rebel and go the other way and store fat.