Yes, with the Javascript / JQuery code in the RAW block for certain pages it would be more reliable.
Would you have an example that I could use and test with?
The JQuery code will look like the following one:
<script>
$("div.bx-form-row-view-wrapper").not(".bx-form-row-view-wrapper-text").hide();
</script>