Look at the shaft vs the path of the hands on the DS. If the shaft is overly steep coming down, that is to say on a steeper plane coming down vs the what the hands are doing, you are likely going to have an out-to-in path. If the face is also shut coming down, the blade is going to dig into the ground --> you'll have deep divots that point left.
At the top focus on letting the clubhead drop (almost as if you have a touch of left forearm clockwise rotation). Now the club can attack the ball from the inside some more. For some, this may feel like you are also letting your back face the target for just a bit longer. In other books this was called "flattening the shaft." I can tell you that if you are used to a shoulder spinning-type move from the top, this will be a rather uncomfortable drill or feeling. I am not the best at describing the anatomical movements, but you can also focus on having some external rotation of the right shoulder.
Other ideas:
Get an "inside approach" type device, or use any soft object (like a pool noodle) and that is 8-10 inches off the ground and over the ball (on your target line). Swing under it.
Practice swinging from a side hill lie with the ball above your feet.
Axis tilt: I like to feel like my hips to don't sway back and forth much, if at all. I am not advocating keeping the head dead still but if you have a lot of hip movement back and forth through the ball, it's hard to maintain your secondary tilt and hit the ball from the inside. I like to feel that my left hip pretty much stays quiet and that I might slide forward just a bit on the DS.
Go to the far end of the range where the net is. If you are a right handed golfer the net will be on your left. If you are used to pulling the ball and/or relying on a pull slice you can practice swinging out to the right a little bit. The idea here is that if you are faced with the ball going way out of bounds you need to change the path of the swing. Don't cheat and line up 45 degrees out to the right. Take a neutral, normal, stance and just focus on easy swings so that ball starts right and you either have a push or maybe a push draw.
Visualize a plane landing on a long runway. The plane (clubhead) would come in shallow and use up a lot of the runway vs a plane descending quite rapidly (and steeply) into the ball.
You asked a very vague, general, question and without a vid of your swing you are going to get a lot of general responses that may do more harm than good.