UI comparison of different versions of an entry of a collection type

Hi All,

Currently , we are trying to build a generic version plugin for entries in collection type . We want to compare two different versions as UI components . We are able to show the JSON diff of the data but we are not able to render the same as UI .

This is what we want (example is from contentful)