Optimizing the Dynamic Template for Mobile, Tablet, and Other Viewing