I need to edit the HTML for the form created in Marketo, further I need to customized the UI in different format of my own.
Is it possible or any work around.
You can apply any Custom CSS you want to the form.
You can't fundamentally change the DOM unless you use JS (which can in turn lead to some features malfunctioning). But that's the nature of all forms libraries.