It depends! For lengthy flashback sequences, I usually just make it clear through narration that it's a flashback. Sometimes I'll do some cool visual effect to show when the flashback is over:

For single panel flashbacks, I just round the borders:

And for single lines of dialogue, I just put the relevant character inside of a thought bubble:
