Hi gabriella_cads
welcome to the Apple (user-to-user) Community.
Re: "macbook air just randomly crashes and my screen sort of glitches"
Wondering which MacBook Air model (year) you are using.
How to: Identify your MacBook Air model
and
whether your MacOS is updated to the newest compatible version. (See above link:
"Newest compatible operating system" is listed for models that can't use recent OS)
____________________________________
Re: "is there anyway I could fix it myself"
You could see if the issue persists in Safe Mode:
Start up your Mac in safe mode - Apple Support
How to use safe mode on your Mac – Apple Support
If the issue doesn't continue while in safe mode,
leave safe mode by restarting your Mac normally.
Then test for the issue again. The issue may have been resolved.
____________________________________________________________
More trouble-shooting if needed:
✽. Wondering if you have enough memory / storage on your Mac (eg: 50 Gb free) for your Operating System to work smoothly.
How to check, and /or free up storage space on your Mac.
(Back everything up first, if you need to delete items)
Free up storage space on your Mac - Apple Support
____________________________________________________________________
✽ Wondering if a particular app is in use when Mac freezes / restarts:
If an app on your Mac stops responding, closes unexpectedly or won’t open – Apple Support
✽. What to do: If your Mac sleeps or wakes unexpectedly – Apple Support
✽. Could there be a schedule set up?
Schedule your Mac desktop computer to turn on or off
✽. If the issue is occurring when the Mac is plugged into power,
check that the connection is stable, and the adapter is not at fault.
________________________________________________
✽. Sometimes third-party (non-Apple) apps (eg: including unnecessary virus checkers, ad blockers etc.) can cause issues.
Try turning off any such apps., (even "Chrome", etc can cause issues)
See if there is any change.
If a third-party app is troublesome: uninstall using the uninstaller from the developer.
______________________________________________
Re: "would I have to bring it professionally repaired?"
If needed:
MacBook Air Support have a website with a "Get Support" contact link at the bottom:
MacBook Air - Official Apple Support
or
Product Service and Repair Information - Official Apple Support
All the best :-