Sony has published a patent that talks of amending in-game difficulty levels in real time as a player perhaps struggles or succeeds with certain elements
What I like more than this is when games make every individual aspect of difficulty (e.g. enemy health, enemy aggression, enemy damage, etc.) something you can tweak in the accessibility menu. Spider-Man 2 and The Last of Us Part 1 are two good examples of this.