Edit: to clarify a bit, I know this because I'm a nerd and sometimes pick flights specifically because of the type of plane used. I quite enjoyed the A380. :o)
If you're scheduled to fly on a 737-800 but there's a problem with the jet, they might swap it out for a 737-400 (which is pretty much just an older generation of the -800, similar to how the -800 is an older generation of the MAX 8) and it would go completely unnoticed by almost every passenger. That happens less often nowadays that most (all?) of the -400s are retired, but I would expect it to start happening again once the MAXs return to service and they are being deployed side-by-side with the NGs.
I've never had the plane model changed in my flying experience.
I believe bigger airline alliances actually have a pool for such mishaps, spare planes with just the alliance branding on them, I've seen them at airports though not sure how the ownership worked.