Hello @Divij Madan ,
welcome to this moderated Azure community forum.
Here is a blog post explaining how you can use the EventGrid Namespace MQTT support.
If you want to see this in action, here is a recording of a presentation showing all details.
Multiple SDKs and client samples are presented.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.