When audio and video are out of sync, first check whether the fault is in the file or in the way it is being played. If the same video is out of step on your phone, your laptop and in another app, the file itself is wrong: open it here, move the sound until the words meet the lips, and save a corrected copy. If it is only wrong on one TV, soundbar, pair of headphones or app, the file is fine and that playback chain is adding delay, which is fixed in that device’s settings.
For a file, the tool above does the fiddly part. Detect automatically looks for sharp sounds and the moments in the picture that made them, and the clap method lets you pick the exact frame by eye. You then nudge the sound Earlier or Later in 10 ms or 1 ms steps, watch the result at ¼ speed, and press Export video. The picture is copied as it is, and when only the timing changes the sound is copied too, so nothing is re-encoded.
For playback problems, the audio delay test puts a number on the lag, and the guides below show where that number goes on a TV or soundbar, with Bluetooth headphones, in VLC or in OBS. Sound that starts in sync and slowly slips away is a different fault called drift, covered on fix audio drift.