Front end styling is usually a theme territory that plugins should avoid. There is no simple way to know how anything is styled without actually doing the full styling, as some of it will depend on the content itself, and since the styling is basically random from the plugin author POV, you are unlikely to be able to have a general algorithm to adjust it to whatever you need in a reliable way.
Best approach that comes into my mind is to wrap the content with your own div, and use JS to hide everything else on the page. Still you will most likely get a mobile type of vies in your lightbox, which might not be what you are after.
Related Posts:
- Create custom page templates with plugins?
- Consuming an external API in WordPress?
- Is there a WordPress plugin that registers a plugin file as a custom page template?
- Is it possible to define a template for a custom post type within a plugin independent of the active theme?
- Ways to have multiple front-page.php templates that can be swapped out?
- How can I have two different urls for the same page that load two different templates?
- Page Templates from plugin not working after upgrading WP to 4.7 or upper version
- Creating a default Custom Post Template that a Theme can override
- Custom Taxonomy in plugin and template
- WooCommerce – Load Templates From Plugin For All Template Files
- How can I add a custom header to a custom template in a plugin without using the theme folders
- Use touch_time() on front-end form via plugin
- how to redirect to my template
- Template for custom post type shows all posts instead of just one
- Template plugin for blog posts? [closed]
- Custom url structure for custom template
- Developer plugin to echo template names/filepaths [closed]
- How do I add a template to a theme using a plugin?
- Creating a wordpress plugin where users can override templates
- do_shortcode() doesn’t work if shortcode contained in variable, works if shortcode passed as string
- taxonomy_template filter do not loads custom taxonomy template properly
- Plugin shortcode won’t work on a custom template file [closed]
- Override comments.php template with plugin
- How to enqueue a theme style-sheet to my admin settings page?
- How to Include a Loop Template File in a Plugin
- Woocommerce email template customization [closed]
- More than one text-domain is being used because of the included templates for plugins
- Can we use a webservice with WordPress?
- WP Post Template – Templates in own folder
- Register Page Template from Plugin
- List Category Posts rewrite necessitates rewrite of customised templates
- WordPress comments not appearing in blog posts, likely because of Redux template. Could I fix this with a plugin that adds a comment form as a block? [closed]
- (FES EDD) New vendor submission page is blank
- Plugin-generated pages use Not Found or Pages Archive templates?
- How to display (plugin?) output on a single page (not a widget, probably not a short code) – template, plugin, combination?
- Advanced Custom Field DatePicker [closed]
- Use of Templates in a Plugin
- Add comments for template variables
- Perform internal redirect in WordPress?
- How to use get_template part in the plugin?
- changing posts layout in ultimate member profile plugin
- Template filter for custom taxonomy terms
- how to force tag page layout to use same as search layout?
- Calling the_excerpt from inside a plugin template file
- Best practice for including plugin output in a template without using shortcode?
- Timber – Twig post.content returns null can’t create ACF Gutenberg blocks
- Where to find the code used to render a page that has a shortcode and a template defined?
- WordPress as template engine
- Default taxonomy template in plugin, override in theme
- Plugin Admin Menu Boiler Plate
- Opening a JQuery modal window on click of a button with a JQuery plugin
- How to use template inside plugin shortcode with variables for big HTML code
- Pagination shows Same posts
- Custom form not showing in correct place on page
- Call a function for social sharing
- reCAPTCHA on page template without plugin
- How do I show content from a plugin using the template the site is currently working with?
- Pull comments from one page/post into another page/post?
- Wp-minify doesn’t seem to minify my JS code
- How to call php file in theme directory from plugin
- use EDD Content Restriction for restricting php in template
- Pass PHP variable to javascript
- How can I disable an attribute from a Gutenberg block included in a template via InnerBlocks?
- How to turn my WordPress site into a ready to deploy template?
- how to display a template.php in a shortcode
- WoCommerce Cart is not showing pricing
- Enqueue css to a third-party plugin template
- the_posts_pagination() not working if I add wp_head() to header.php
- Mobile Menu and Mobile Sidebar missing
- How to check if short code is present in template?
- How to add post title to custom php?
- What are the disadvantages of using template_redirect for restrictions
- How to access Post Archive created by Elementor?
- How to prevent redoing get_posts queries and make results available to other scripts?
- Programmatically generate new pages for a site based on page template and content elements accessed via DB
- Change Jobs for WordPress templates
- how to do Thematic like this website using wordpress?
- How to change the deafult template in WordPress plugin
- Customize plugin templates
- Template conflict with WC Payment Method
- How to add HTML to a template only when user is logged out/ not registered
- Adding a custom page template to a plugin generated page
- History of page, interval of years
- How to add dynamic content to posts page, archive, taxonomies, search, author, etc?
- custom template only for content
- Convert HTML5/CSS3 site to WordPress Theme (need a lot of plugins) or just use the API?
- Is there any simple wordpress search template that works with existing searchforms?
- show Visual form builder in the front end
- Fake Single WordPress Post (Page) Loop
- Make a Custom template for a specific category in wordpress
- WP Customer Reviews call short code on another page [closed]
- WordPress show different custom post type
- Display HTML5 jQuery Audio Player On Front Page
- Divi Template A Few Questions
- My Blog page ( posts page ) theme isn’t changing with the new theme [closed]
- How to display content depending on the Woocommerce Product Category
- Is there a plugin or another way that can help me find out the underlying files of a page/post? [closed]
- How to make a Template page to show the information of different things Shop and Product page?
- How to provide page_template path in custom plugin using WordPress
- Cannot register a block in my Twig-based theme using Timber for WP