See https://apex.oracle.com/pls/apex/f?p=134181:60

How can the style & icon be made dynamic based on the content of the item (timestamp in this case) e.g. if the timestamp is older than 4 hours, use this icon & CSS classes, otherwise use that one.
Any ideas welcome.
Thanks