NXP-8697 use preview to fix css display in the view layout