Until repair, a TV can stand in. If you can still see enough to click, wireless mirroring is enough. Fully black? Plug HDMI (adapter if needed): the TV comes up with the Mac, no app to launch blind.
First: back up your data
Cracked glass sometimes comes with worse news. Plug a disk and start Time Machine before you do anything clever.
If the screen is still partly readable
If you can still aim a click, start wireless mirroring and work on the TV. Bump pointer size under Accessibility → Display if you keep losing it.
If the screen is completely black
HDMI (plus a USB-C adapter if needed). macOS will light the TV. Wireless needs you to launch an app first, awkward when the lid is a black rectangle.
After that
Still book the repair. A TV is a stopgap, not a new laptop panel. Also: Mac on TV without HDMI.
Frequently asked questions
Can you use a MacBook with a broken screen?
Yes. You can display it on another screen through HDMI, or wirelessly if the built-in display is still readable enough to launch the mirroring app.
Will a Mac show the picture on a TV if its own screen is black?
Over HDMI, yes, if the machine still boots. Wireless needs you to start the app somehow.
Is this a long-term fix?
No. Stopgap only. Repair the panel.