NB! It seems this console command is not compatible with CS2.
Command Profile

SV_SHOWLAGCOMPENSATION

CS:GO

This command enables (if set to 1) the lag compensated hitboxes of players. Default is 0 (disabled).

Syntax
sv_showlagcompensation [0 / 1]

Description

This command enables (if set to 1) the lag compensated hitboxes of players. Default is 0 (disabled).

Syntax And Arguments

sv_showlagcompensation [0 / 1]
0 / 1 Enter 0 to not display lag compensated hitboxes (default). Enter 1 to draw lag compensated hitboxes for players.