if the top grid line of yaxes is always the last item (highcharts-yaxis-grid > highcharts-grid-line) and the right grid line of xaxes is always before the last one (highcharts-xaxis-grid > highcharts-grid-line). you can find both grid lines and then set the stroke-width to 0px.

check this demo:

Related Query

More Query from same tag