View custom detail

I want to customize the visualization of details in some modules by inserting tables with some information. I edited view.detail.php, but the table looks like in the image and not inside the details frame. Where can I fix this?

I think you should be overriding the Display method of the View class, something like this

https://suitecrm.com/suitecrm/forum/suitecrm-7-0-discussion/15154-is-there-logic-hook-for-detailsview#50990

(there are probably better examples out there if you search)

But I am not sure if you can do something fancy like that just changing a few field values and letting the parent:display() do all the work. Maybe you have to copy the parent:display code into this function and make a more profound transformation.