To putt more accurately you must understand what “square” is. The putter face must be square to the intended line ( perpendicular).
Use an indoor putting Matt or get a 2 X 4 piece of wood that can be used as a target tool.
Place toe of putter against the inside of 2 x 4. Practice making strokes along board.
And play golf ball opposite the center sight line on putter head.