Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Portal header does not display in the mobile View



Portal header does not display in the mobile View.

Error Messages

Not Applicable

Steps to Reproduce

  1. Configure the dashboard using the Header-Footer-Left screenlayout.
  2. In the header section, include another section using the pyIsMobile Visibility When rule. This section contains two images and a label.
  3. Create a report definition containing a drilldown report.
  4. Launch the portal and navigate to the Report Browser tab.
  5. Open the drilldown report.
  6. Click the 'Main report name' link from the drilldown report. OnClick of the main report name link, the header is not displayed. 

Root Cause

The header did not display due to an overridden CSS in the 'CustomUIStyles.css', which specified the header height to be 60px and footer height as 'auto'.

Hence, when the default CSS is fetched, the application header and footer do not display correctly.

Default CSS:

.flex.screen-layout-header_footer_left > .screen-layout-region-main-middle {
    flex: 1 auto;
    position: static;
    height: calc(100% - 80.0px);
    width: calc(100% - 273.0px)


Perform the following local-change:

Add the below CSS in the CustomUIStyles.css.

@media only screen and (max-width: 800px) {
  .screen-layout-header_footer_left > .screen-layout-region-main-middle{
    height: calc(100% - 134px) !important;

Published August 15, 2019 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us