I don't know why the locked Android is allowing notifications to expand (maybe that depends on OS version and vendor customization), but you can change OS settings:
Settings / Apps / Tesla / Notifications / Phone Key Status
Then set "Lock Screen" to "Don't show notifications at all", or switch "Minimize" on.