Disney's Haunted Mansion spends its first two acts painting a huge mystery over the home that's lured a bunch of folks in. No matter what, they can't escape the New Orleans mansion, which leads to LaKeith Standfield's Ben becoming a paranormal detective of sorts. Thankfully, he has the likes of Danny Devito's Bruce (a professor) to help out.
Source:https://www.cbr.com/haunted-mansion-2023-ending-explained/