You can try the whenReady method in the Forms2 API
The example below will hide the FirstName and LastName input fields.
To use replace the Url_Path_Value, and the input ids of the fields you would like to not display
<script>
MktoForms2.whenReady(function(){
if(window.location.href == ''Url_Path_Value')'){
var hideInputs = document.querySelectorAll('input#FirstName, input#LastName');
for(i=0;i<hideInputs.length;i++){
hideInputs[i].parentNode.parentNode.style.display = 'none';
}
}
});
</script>