Custom code for SharePoint Online to auto-expand a day’s view on a Month calendar

Does anyone know of any custom code for SharePoint Online to auto-expand a day’s view on a Month calendar?

I am only able to find code for SP2010 and similar, and it isn’t compatible with SharePoint Online in my testing.

Thank you